This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A257588 If n = abcd... in decimal, a(n) = |a^2-b^2+c^2-d^2+...|. 5
 0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 1, 0, 3, 8, 15, 24, 35, 48, 63, 80, 4, 3, 0, 5, 12, 21, 32, 45, 60, 77, 9, 8, 5, 0, 7, 16, 27, 40, 55, 72, 16, 15, 12, 7, 0, 9, 20, 33, 48, 65, 25, 24, 21, 16, 9, 0, 11, 24, 39, 56, 36, 35, 32, 27, 20, 11, 0, 13, 28, 45, 49 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 LINKS Reinhard Zumkeller, Table of n, a(n) for n = 0..10000 PROG (Haskell) a257588 = abs . f 1 where    f _ 0 = 0    f s x = s * d ^ 2 + f (negate s) x' where (x', d) = divMod x 10 -- Reinhard Zumkeller, May 10 2015 (Python) def A257588(n): ....return abs(sum((int(d)**2*(-1)**j for j, d in enumerate(str(n))))) # Chai Wah Wu, May 10 2015 CROSSREFS Cf. A257587, A257796. Cf. A225693, A003132. Sequence in context: A098736 A002015 A257587 * A303269 A003132 A062331 Adjacent sequences:  A257585 A257586 A257587 * A257589 A257590 A257591 KEYWORD nonn,base AUTHOR N. J. A. Sloane, May 10 2015 STATUS approved

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

Last modified May 25 12:30 EDT 2019. Contains 323568 sequences. (Running on oeis4.)