mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2016-11-04, 07:43   #12
MattcAnderson
 
MattcAnderson's Avatar
 
"Matthew Anderson"
Dec 2010
Oregon, USA

25×52 Posts
Default

Hi Mersenneforum,

For what it's worth, here is the Maple13 code I wrote. The links above to the OEIS entries really answer the original question.

# okay
> # triangular numbers
> sumb := 0; for a to 12 do sumb := sumb+a end do;
0
1
3
6
10
15
21
28
36
> for e to 10000 do f := (1/2)*e*(e+1); if sqrt(f) = floor(sqrt(f)) then print(f, e) end if end do;
1, 1
36, 8
1225, 49
41616, 288
1413721, 1681
48024900, 9800

Regards,
Matt
MattcAnderson is offline   Reply With Quote
Old 2016-11-04, 13:05   #13
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by MattcAnderson View Post
Hi Mersenneforum,

For what it's worth, here is the Maple13 code I wrote. The links above to the OEIS entries really answer the original question.

# okay
> # triangular numbers
> sumb := 0; for a to 12 do sumb := sumb+a end do;
0
1
3
6
10
15
21
28
36
> for e to 10000 do f := (1/2)*e*(e+1); if sqrt(f) = floor(sqrt(f)) then print(f, e) end if end do;
1, 1
36, 8
1225, 49
41616, 288
1413721, 1681
48024900, 9800

Regards,
Matt
with a little rearrangement of the equality you can show n is within the range m to sqrt(2)*m. because in the worst cases n= n^2 and you get it rearranging to 2*sqr(m)=2*sqr(n) and if you ignore the +n that happens you can show that roughly 2*sqr(m) = sqr(n) in the worst case on the other end of things and this leads with square roots to sqrt(2)*m = n. so if an n exist for an m value n is between m and sqrt(2)*m. oh and if they equal you can show that they have a GCD greater than 1 etc.

Last fiddled with by science_man_88 on 2016-11-04 at 13:17
science_man_88 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
When I was your age.....CHALLENGE petrw1 Lounge 14 2009-11-23 02:18
Challenge science_man_88 Miscellaneous Math 229 2009-09-07 08:08
rsa-640 challenge ValerieVonck Factoring 58 2005-10-24 15:54
Another challenge R.D. Silverman Programming 24 2005-07-27 21:08
Who is Challenge? JuanTutors PrimeNet 2 2004-07-22 12:56

All times are UTC. The time now is 03:21.


Sat Jul 17 03:21:11 UTC 2021 up 50 days, 1:08, 1 user, load averages: 1.41, 1.48, 1.39

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.