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!)
A077253 Sum of digits squared plus sum of digits of n. 2

%I #11 Nov 26 2016 23:57:51

%S 2,6,12,20,30,42,56,72,90,2,4,8,14,22,32,44,58,74,92,6,8,12,18,26,36,

%T 48,62,78,96,12,14,18,24,32,42,54,68,84,102,20,22,26,32,40,50,62,76,

%U 92,110,30,32,36,42,50,60,72,86,102,120,42,44,48,54,62,72,84,98,114,132

%N Sum of digits squared plus sum of digits of n.

%C Inspired by A071440. The quasi-periodic function. See also A077252.

%H Vincenzo Librandi, <a href="/A077253/b077253.txt">Table of n, a(n) for n = 1..1000</a>

%e a(13)=14 because (1^2+3^2)+(1+3)=14.

%t sd[n_]:=Module[{idn=IntegerDigits[n]},Total[idn+idn^2]]; Array[sd,80] (* _Harvey P. Dale_, Aug 12 2012 *)

%o (PARI) a(n)=my(d=digits(n)); sum(i=1,#d,d[i]^2)+sumdigits(n) \\ _Charles R Greathouse IV_, Nov 26 2016

%Y Cf. A071440, A002378, A077252.

%K nonn,base,easy

%O 1,1

%A _Zak Seidov_, Nov 01 2002

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 23 08:33 EDT 2024. Contains 371905 sequences. (Running on oeis4.)