OFFSET
1,2
COMMENTS
This sequence is analogous to A166319 but with cubes instead of squares.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Waring's_problem
Wikipedia, Smooth number
EXAMPLE
64 = 2*2*2*2*2*2 >= 6 * 2^3, so 64 is in the sequence.
96 = 3*2*2*2*2*2 >= 3^3 + 5 * 2^3, so 96 is in the sequence.
256 = 4*4*4*4 >= 4*4^3, so 256 is in the sequence.
MAPLE
isA259942 := proc(n)
local ifa;
ifa := ifactors(n)[2] ;
return (n >= add( op(2, p)*op(1, p)^3, p=ifa)) ;
end proc:
for n from 0 to 1000 do
if isA259942(n) then
printf("%d, ", n);
end if;
end do: # R. J. Mathar, Nov 27 2015
MATHEMATICA
scpfQ[n_]:=n>=Total[Flatten[Table[#[[1]], {#[[2]]}]&/@ FactorInteger[ n]]^3]; Select[Range[1000], scpfQ] (* Harvey P. Dale, Dec 25 2015 *)
PROG
(Python)
from sympy import factorint
for j in range(1, 1001):
k = factorint(j)
it = k.keys()
va = k.values()
alfa = 0
for l in range(0, len(k)):
alfa = alfa + va[l]*(it[l]**3)
if alfa <=j:
print j
(PARI) isok(n) = {my(f = factor(n)); n >= sum(k=1, #f~, f[k, 2]*f[k, 1]^3); } \\ Michel Marcus, Nov 28 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Francesco Di Matteo, Nov 08 2015
STATUS
approved