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

Home > Numbers
Little power sum (Posted on 2024-11-15) Difficulty: 2 of 5
Find the sum of all positive integers of the form 2r*3s, where r and s are nonnegative integers that do not exceed 4.

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution answer | Comment 1 of 4
A short program finds: 3751

If r and s are nonnegative integers that do not exceed N, where N is {0, 1, 2, 3, ... } the sum is the sequence
{1, 12, 91, 600, 3751, 22932, 138811, ... }

which is in Sloane's as  A160869  a(n) = sigma(6^(n-1)).

Although I cannot make the formula given by sigma(6^(n-1)) match the results, which should not be surprising since it is a different formula than the one used in this problem.

-------------------
top = 5
total = 0
for r in range(top):
    for s in range(top):
        total += 2**r*3**s
print(total)


for top in range(1,8):
    total = 0
    for r in range(top):
        for s in range(top):
            total += 2**r*3**s
    print(top-1,total)
    

  Posted by Larry on 2024-11-15 09:18:48
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (5)
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