login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A290226 Numbers n such that A290223(n) = 2. 0
2, 23, 62, 77, 119, 194, 287, 398 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
This sequence is believed to be finite. a(9) > 10^5, if it exists.
LINKS
EXAMPLE
62 is in this sequence because 62 - (6+2)^2 = -2. Then -2 + (2)^2 = 2.
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)==2, print1(n, ", ")))
CROSSREFS
Sequence in context: A031915 A247603 A102385 * A214596 A226490 A217113
KEYWORD
nonn,base,fini,full
AUTHOR
Derek Orr, Jul 24 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 17 20:17 EDT 2024. Contains 371767 sequences. (Running on oeis4.)