OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..1800
FORMULA
a(n) = A239590(n)^3.
MATHEMATICA
cyclpsQ[n_]:=With[{len=IntegerLength[n]}, OddQ[len]&&DigitCount[n, 10, 0]==1&&IntegerDigits[n][[(len+1)/2]]==0]; Join[{0}, Select[ Range[ 800]^3, cyclpsQ]] (* Harvey P. Dale, Nov 05 2024 *)
PROG
(PARI)
is_cyclops(k) = {
if(k==0, return(1));
my(d=digits(k), j);
if(#d%2==0 || d[#d\2+1]!=0, return(0));
for(j=1, #d\2, if(d[j]==0, return(0)));
for(j=#d\2+2, #d, if(d[j]==0, return(0)));
return(1)}
s=[]; for(n=0, 2000, if(is_cyclops(n^3), s=concat(s, n^3))); s
CROSSREFS
KEYWORD
nonn,base,changed
AUTHOR
Colin Barker, Mar 24 2014
STATUS
approved