The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A290227 Numbers n such that A290223(n) = 11. 0

%I #4 Jul 24 2017 12:31:50

%S 8,17,26,29,35,38,47,56,65,74,83,92,149,158,167,197

%N Numbers n such that A290223(n) = 11.

%C This sequence is believed to be finite. If it exists, a(17) > 10^5.

%e 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.

%o (PARI)

%o 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)

%o for(n=1,10^5,if(a(n)==11,print1(n,", ")))

%Y Cf. A007953, A003132, A290223.

%K nonn,base,fini,full

%O 1,1

%A _Derek Orr_, Jul 24 2017

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 June 7 02:59 EDT 2024. Contains 373140 sequences. (Running on oeis4.)