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

Home > Just Math
Smallest Perfect Cube Puzzle (Posted on 2015-07-15) Difficulty: 3 of 5
Determine the smallest positive perfect cube whose first three digits (reading from the left) are 201 (in this order) and the last digit is 5.

No Solution Yet Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution computer assisted solution | Comment 1 of 2
The program takes the ceiling of the cube root of 201 followed by P zeros, and finds any solutions (cubes with the appropriate characteristics) that have the same number of digits as that number. Due to the way the cube roots are formed, if any exist with that number of digits, they will come first, before larger numbers.

    3   kill "smalcube.txt"
    5   open "smalcube.txt" for output as #2
   10   for P=1 to 999
   20       N=201*10^P
   30       Cr=-int(-(N^(1/3)))
   40       Dv5=-int(-Cr/5)
   50       if Dv5@2=0 then Dv5=Dv5+1
   55       loop
   60        Cr=5*Dv5
   70        N=Cr*Cr*Cr
   80        Ns=cutspc(str(N))
   90        if left(Ns,3)="201" and right(Ns,1)="5" then print N
   91        if left(Ns,3)="201" and right(Ns,1)="5" then print #2,N:inc Ct:if Ct>12 then end
   92        if left(Ns,3)>"201" then goto 100
   93        Dv5=Dv5+2
   95       endloop
  100   next

finds these numbers that begin with 201 and are the smallest perfect cubes of their length and also end with 5. The first is 201745589625.


  Posted by Charlie on 2015-07-15 16:03:18
Please log in:
Remember me:
Sign up! | Forgot password

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

Copyright © 2002 - 2018 by Animus Pactum Consulting. All rights reserved. Privacy Information