login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A290227
Numbers n such that A290223(n) = 11.
0
8, 17, 26, 29, 35, 38, 47, 56, 65, 74, 83, 92, 149, 158, 167, 197
OFFSET
1,1
COMMENTS
This sequence is believed to be finite. If it exists, a(17) > 10^5.
EXAMPLE
26 is in this sequence because 26 - (2+6)^2 = -38. Then -38 + (3+8)^2 = 83. Then 83 - (8+3)^2 = -38, and so on.
PROG
(PARI)
a(n)=k=n; c=1; v=List(); listput(v, k); while(c, if(k>=0, k-=sumdigits(k)^2; c+=1; if(k==2||k==3||k==0||k==6||k==9, return(k)); if(vecsearch(Vec(v), k), return(sumdigits(abs(k)))); listput(v, k)); if(k<0, k+=sumdigits(-k)^2; c+=1; if(k==2||k==3||k==0||k==6||k==9, return(k)); if(vecsearch(Vec(v), k), return(sumdigits(abs(k)))); listput(v, k)); c+=1)
for(n=1, 10^5, if(a(n)==11, print1(n, ", ")))
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Derek Orr, Jul 24 2017
STATUS
approved