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

Home > Numbers
Box and cube rooted (Posted on 2020-12-14) Difficulty: 2 of 5
Find the number of positive integers n such that 1 ≤ n ≤ 1000 and n is divisible by [n1/3]

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
re: Solution | Comment 3 of 7 |
(In reply to Solution by Larry)

Here's the corrected list of M vs number, with the safeguarding of the cube roots of perfect cubes: 

           M       number
    10     9
   100    40
        1000         172
       10000         746
      100000        3343
     1000000       15247
ct=0;M=10;
for m=1:6
for n=1:M
    cr=floor(n^(1/3));
    crr=round(n^(1/3));
    if mod(n,cr) == 0 | crr^3==n
       if crr^3==n
          cr=crr; 
       end
       ct=ct+1;
    end
end
disp([M, ct])
M=M*10; ct=0;
end




  Posted by Charlie on 2020-12-14 13:39:20
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 (0)
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