The Cellar  

Go Back   The Cellar > Main > Nothingland
FAQ Community Calendar Today's Posts Search

Nothingland Something about nothing - game threads, diversions, time-wasters

Reply
 
Thread Tools Display Modes
Old 10-25-2012, 03:31 PM   #1
piercehawkeye45
Franklin Pierce
 
Join Date: Oct 2006
Location: Minnesota
Posts: 3,695
n = 10000
;
loop i (1,n)
...loop j (1,n)
......;
......x_square = i^2
......x_cube = j^3
......;
......if x_square = x_cube
.........print i
.........print x_square
......end_if
...end_loop
end_loop
end
store


Results:

x_ = 1
x_square = 1

x_ = 8
x_square = 64

x_ = 27
x_square = 729

x_ = 64
x_square = 4096

x_ = 125
x_square = 15625

x_ = 216
x_square = 46656

x_ = 343
x_square = 117649

x_ = 512
x_square = 262144

x_ = 729
x_square = 531441

x_ = 1000
x_square = 1000000

x_ = 1331
x_square = 1771561

x_ = 1728
x_square = 2985984

x_ = 2197
x_square = 4826809

x_ = 2744
x_square = 7529536

x_ = 3375
x_square = 11390625

x_ = 4096
x_square = 16777216

x_ = 4913
x_square = 24137569

x_ = 5832
x_square = 34012224

x_ = 6859
x_square = 47045881

x_ = 8000
x_square = 64000000

x_ = 9261
x_square = 85766121



You can find the pattern
__________________
I like my perspectives like I like my baseball caps: one size fits all.
piercehawkeye45 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 07:15 AM.


Powered by: vBulletin Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.