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”).

Numbers k such that k and k^2 both have digit sum 10. Multiples of 10 are omitted.
0

%I #12 Jul 31 2022 07:43:49

%S 19,46,55,145,361,451,20251

%N Numbers k such that k and k^2 both have digit sum 10. Multiples of 10 are omitted.

%C A subsequence of A056020. - _R. J. Mathar_, Feb 10 2008

%C No further terms < 3*10^12 of the form 9*k+1, k=1,2,3,... - _Lars Blomberg_, Jun 28 2011

%C No further terms < 10^30. - _Charles R Greathouse IV_, Jun 29 2011

%e Corresponding squares are 361, 2116, 3025, 21025, 130321, 203401, 410103001.

%o (PARI) dsum(n)=my(s=n%10);while(n\=10,s+=n%10);s

%o do(L)=my(E,F,G,H,t);for(a=1,L-1, for(b=0,a, for(c=0,b, for(d=0,c, for(e=0,d, E=10^a+10^b+10^c+10^d+10^e; for(f=0,e,F=E+10^f; for(g=0,f, G=F+10^g; for(h=0,g, H=G+10^h; for(i=0,h, t=H+10^i+1; if(dsum(t^2)==10, print1(t", ")))))))))));

%o do(30) \\ _Charles R Greathouse IV_, Jun 29 2011

%Y Cf. A056020.

%K base,nonn

%O 1,1

%A _Zak Seidov_, Feb 10 2008