All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Alternating Sum of Squares Crossed Triangular Number Puzzle (Posted on 2023-06-24) Difficulty: 3 of 5
Is the expression given by:
n2 - (n-1)2+(n-2)2+.....+ (-1)n-2*22+(-1)n-1*12
a triangular number for every value of n?

Prove your assertion.

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution solution Comment 1 of 1
Suppose n is even.
Split up the series into pairs.  There will be n/2 new terms:
    2n-1  +  2n-5  +  2n-9  +  ...  +  2n - (2n-3)
This evaluates to X - Y, where
X is (n/2)(2n) = n^2
Y is 1 + 5 + 9 + ... + (2n-3) which is a geometric series which sums to:
    (n/2)*((2n-2)/2)  =  n(n-1)/2
Our sum is X - Y = n^2 -  (n(n-1)/2)
which evaluates to n(n+1)/2

If instead n is odd, then consider m = n-1, or n = m+1.
m is even, so we know that all but the first term sum to m(m+1)/2 except with the sign flipped.  
The first term is n^2 or (m^2 + 2m + 1)
So, for odd n, the sum in terms if m is:
    m^2 + 2m + 1  -  (m(m+1)/2)  =  (m+1)(m+2)/2 =  n(n+1)/2
  Posted by Larry on 2023-06-24 11:30:34
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (3)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (7)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information