OFFSET
1,3
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..5065
EXAMPLE
33 is a member because 77^3 = 456533 is a cube ending in 33.
MATHEMATICA
Union@Flatten@Table[Mod[i^3, 10^n], {n, 3}, {i, 10^n}] (* Ivan Neretin, Aug 30 2015*)
PROG
(PARI)
v=[]; for(k=1, 10^3, for(m=1, 3, v=concat(v, k^3%10^m))); v=vecsort(v, , 8)
(PARI)
a=[]; for(m=1, 3, a=setunion(a, Set(vector(10^m, n, n^3)%10^m))); a
(Python)
from itertools import count, islice
from sympy import nthroot_mod
def A246422_gen(startvalue=0): # generator of terms >= startvalue
return filter(lambda n:len(nthroot_mod(n, 3, 10**(len(str(n))))), count(max(startvalue, 0)))
CROSSREFS
KEYWORD
nonn,base,changed
AUTHOR
Derek Orr, Aug 25 2014
EXTENSIONS
Corrected by Ivan Neretin, Mar 03 2016
STATUS
approved