UBS
3.3 of 5 1,228 reviews
www.ubs.com Zurich, Switzerland 5000+ Employees

UBS Sales and Trading Interview Question

"What is the sum of 1-40?"
Add Tags [?]
Answer Flag Question

Part of a Sales and Trading Interview Review - one of 502 UBS Interview Reviews

Answers & Comments

0
of 0
votes
820
- Interview Candidate on Feb 11, 2010 Flag Response
2
of 2
votes
We can have the sum by using the following formula
N * (N + 1) / 2

So we have:
40 * (40 + 1) / 2 = 820
- blue on Mar 21, 2010 Flag Response
0
of 3
votes
Since he isn't asking to sum all the numbers from 1 to 40:

sum of 1 and 40 = 41
OR
sum of 1 + -40 = -39
- Evandro on Dec 30, 2010 Flag Response
3
of 3
votes
Any sum like this is easy. take the lowest and highest... 1 +40 = 41, then the next highest and the next lowest. 2 + 39 = 41. Realize that there are 20 such pairs. 20 * 41 = 820.
For the numbers 1 - 100, 1 + 100 = 101, 2 + 99 = 101; there are 50 such pairs, so 50 * 101 = 5050
- scienceguy on Jan 11, 2011 Flag Response
0
of 0
votes
http://brainteaserbible.com/interview-brainteaser-sum-of-the-numbers-from-1-to-50
- an87 on Jun 13, 2011 Flag Response

To comment on this question, Sign In with Facebook or Sign Up


Tags are like keywords, helping to categorise interview questions that have something in common.

Glassdoor is your free inside look at UBS interview questions and advice. All interview reviews are posted anonymously by UBS employees and interview candidates.