OFFSET
1,2
COMMENTS
The sides of the successive squares are given by A158023. Terms computed by Jean-Marc Falcoz.
Integers k such that A058183(k)+1 is a square. - Dominic McCarty, Mar 28 2025
LINKS
Dominic McCarty, Table of n, a(n) for n = 1..10000
Eric Angelini, Digit Spiral
Eric Angelini, Digit Spiral [Cached copy, with permission]
EXAMPLE
...0...01...012...0123...012345
.......23...345...4567...678910
............678...8910...111213
..................1112...141516
.........................171819
.........................202122
The integers fitting exactly in the SE corner of the above squares are 0, 3, 8, 12, 22. There is no 5x5 square where this is possible.
PROG
(Python)
from math import isqrt
a, k, l = [], 0, 0
while len(a) < 40:
l += len(str(k))
if l == isqrt(l) ** 2: a.append(k)
k += 1
print(a) # Dominic McCarty, Mar 28 2025
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini, Mar 11 2009
STATUS
approved
