cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A068833 Start of the first occurrence of exactly n consecutive squares with digit sum also a square.

Original entry on oeis.org

16, 36, 900, 3364, 0, 123409881, 10000, 81, 2120219933855716, 91361386718598177458046950625
Offset: 0

Views

Author

Amarnath Murthy, Mar 09 2002

Keywords

Examples

			a(7) = 81 as the sums of the digits of the 7 consecutive squares 81, 100, 121, 144, 169, 196, 225 are squares, but the digit sums of 64 and 256 are not.
		

Crossrefs

Programs

  • Mathematica
    l[n_] := Module[{k}, For[k=0, IntegerQ[Sqrt[Plus@@IntegerDigits[(n+k)^2]]], k++, Null]; k]; Clear[a]; For[n=0, True, n+=ln+1, If[a[ln=l[n]]==-1, Null, Null, a[ln]=n; Print["a(", ln, ")=", n^2]]]

Extensions

Edited by Dean Hickerson, Oct 28 2002
a(9) from Giovanni Resta, Aug 27 2018