Find the sum of all positive integers 1 ≤ n ≤ 1 0 0 such that 1 + 2 + 3 + ⋯ + n 1 2 + 2 2 + 3 2 + ⋯ + n 2 is an integer.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
= 1 7 1 7 . I wonder why I didn't write that.
Log in to reply
You can directly edit your solution, by clicking on the pencil that's just to the left of the up vote count.
Log in to reply
Sorry guys, but is there a method to get the result of a sum of non-consecutive numbers? Because this time i had to count all the numerbs and then multiply the half by the sum of two of them..
Log in to reply
@Antonio Giordano – That's the way I evaluated the sum while working out the problem myself. Of course, if you really don't want to do that, you can always write that the sum is equal to ( 3 ⋅ 1 − 2 ) + ( 3 ⋅ 2 − 2 ) + ⋯ + ( 3 ⋅ 3 3 − 2 ) + ( 3 ⋅ 3 4 − 2 ) = 3 ( 1 + 2 + ⋯ + 3 4 ) − 2 ⋅ 3 4 = 3 ( 2 3 4 ⋅ 3 5 ) − 6 8 = 1 7 1 7 . In my mind, though, using the formula S = 2 n ( a + z ) where n is the number of terms and a , z are the first and last terms respectively is the easiest way to go.
Log in to reply
@David Altizio – I write C code to find the result :))
@Antonio Giordano – Learn the formulas of "SEQUENCES AND SERIES"......ie AP , GP and HP...
@Antonio Giordano – For Antonio, I believe this would answer your inquiry. You can use the formula for the nth term. a n = a 1 + ( n − 1 ) d , where a n is the nth term, a 1 is the first term, n is the number of terms (which you wanted to get) and d is the common difference. So, you substitute: 100 = 1 + (n-1) * 3 and you'll get n = 34 :)
1156 is correct ans
Lol I got the correct Answer :)
I did it this way too but instead of beginning with the known formula of the sum of squares I had to derive it first ;p
N = Sum{k = 1; n (k^2)} = n(n + 1)(2n + 1)/6;
D = Sum{k = 1; n (k)} = n(n + 1)/2;
N/D = n(n + 1)(2n + 1)/6 x 2/(n(n + 1)) = (2n + 1)/3;
N/D is an integer if:
2n + 1 = 3m; 1 ≤ n ≤ 100; m ∈ ℕ
2n + 1 is odd, so
2n + 1 = 3, 9, 15, 21, ..., 3 + 6(k - 1), 201; k ∈ ℕ;
2n + 1 = 3 + 6(k - 1); n - 1 = 3(k - 1); n = 3(k - 1) + 1 = 3k - 2
n = 1, 4, 7, 10,...,3k - 2,..., 100;
3kmax - 2 = 100; kmax = 102/3 = 34;
we must find:
S = Sum{k = 1; 34(3k - 2)};
sum of first 34 terms of an arithmetIc progression an, with difference:
d = 3, and:
a(1) = 1, a(34) = 100, that is:
S = 34(a(1) + a(34))/2 = 17(1 + 100) = 1717
Sum of consecutive number's squares=1^2+2^2+....n^2=n(n+1)(2n+1)\6.If we put this value in the question we get the following result:(2n+1)/3.Now,this has to be an integer.By hit and trial we get that 1,4,7,11 satisfy this equation.Thus,forming an A.P.sum=1717.
x=(n(n+1)((2n+1) /6)/(n(n+1)/2) =(2n+1)/3 .. n can take values 1 to 100 at n=100 x=201/3=67
what sum are we finding... if we are finding some of numbers for which this holds.. then it yields sum of first 100 natural numbers which is 5050...
1156 is correct ans
1^2+2^2+...+n^2=n(n+1)(2n+1)/6 and 1+2+...+n=n(n+1)/2
Therefore, the fraction is [n(n+1)(2n+1)/6]/[n(n+1)/2] = (2n+1)/3
Possible values of n are 1, 4, 7,..., 100.
So the sum is (1+100)*[(100-1)/3+1]/2=1717.
Sum of 1 s t n square numbers = 6 n ( n + 1 ) ( 2 n + 1 )
Sum of 1 s t n numbers = 2 n ( n + 1 )
Thus, 1 + 2 + 3 + . . . . + n 1 2 + 2 2 + 3 2 + . . . . n 2 = n ( n + 1 ) / 2 n ( n + 1 ) ( 2 n + 1 ) / 6 = 3 2 n + 1 where n ( Arithmetic series) = 1, 4, 7, 10, 13, ...., 100 (Substituting n in the formula gives perfect integers) (We have to find the sum of all this numbers)
Now for Arithmetic Progression (A.P), a= 1, d= 3 and n= ? (Here n is for numbers in series)
x n = a + d(n-1)
So, 100 = 1 + 3 (n-1)
n = 34
Thus n = 3 4 t h which is 100 in the series.
Sum of A.P.= 2 n ( 2 a + ( n − 1 ) d ) = 2 3 4 ( 2 ( 1 ) + ( 3 4 − 1 ) 3 ) = 1 7 1 7
[n(n+1)(2n+1)/6]*[1/[n(n+1)/2]]= (2n+1)/3. The possible values of n where, (2n+1)/3 will be a real number are, 1,4,7,........,100. In this series, a =1; d =3; l=100; n=(l-a)/d +1 = 34. Thus, Sn = n/2[a+l] = 1717
1^2+2^2+...+n^2=n(n+1)(2n+1)/6 and 1+2+...+n=n(n+1)/2
Therefore, the fraction is [n(n+1)(2n+1)/6]/[n(n+1)/2] = (2n+1)/3
Possible values of n are 1, 4, 7,..., 100.
So the sum is (1+100)*[(100-1)/3+1]/2=1717.
Ans: 1717
Sol: 1^2+2^2+...+n^2=n(n+1)(2n+1)/6 and 1+2+...+n=n(n+1)/2 Therefore, the fraction is [n(n+1)(2n+1)/6]/[n(n+1)/2] = (2n+1)/3 Possible values of n are 1, 4, 7,..., 100. So the sum is (1+100)*[(100-1)/3+1]/2=1717.
here is a small matlab code that u can use ;) clear all; close all; sum=0; num=zeros(101,1); den=zeros(101,1); j=1; k=1; number=zeros(100,1); while(j<101) for i=1:j num(j)=num(j)+i^2; den(j)=den(j)+i; end frac=num(j)/den(j) if((rem(frac,1)==0))
number(k)=j;
k=k+1;
sum=sum+j;
end j=j+1 end
Problem Loading...
Note Loading...
Set Loading...
Note that k = 1 ∑ n k k = 1 ∑ n k 2 = 2 n ( n + 1 ) 6 n ( n + 1 ) ( 2 n + 1 ) = 3 2 n + 1 ∈ Z Thus, 3 ∣ ( 2 n + 1 ) ⟹ 2 n + 1 ≡ 0 ( m o d 3 ) ⟹ 2 n ≡ 2 ( m o d 3 ) ⟹ n ≡ 1 ( m o d 3 ) .
Thus, the set of working n is { 1 , 4 , ⋯ , 1 0 0 } , so the sum is 1 + 4 + ⋯ + 1 0 0 = 2 1 0 1 ⋅ 3 4 .