Find the number of positive integers n such that 1 ≤ n ≤ 1000 and n is divisible by [n1/3]
A short program finds 166 solutions.
[edit: error, see Charlie's post]
count = 0
for n in range(1,1001):
if n % int(n**(1/3)) == 0:
count += 1
print(count)
----------
I checked different ranges for M where 1 ≤ n ≤ M
M number
10 9
100 39
1000 166
10000 729
100000 3301
1000000 15151
Edited on December 15, 2020, 4:40 pm
|
Posted by Larry
on 2020-12-14 10:26:37 |