OFFSET
1,1
COMMENTS
In short, write n in the middle of n^2.
Portions of this sequence are sometimes given as puzzles.
REFERENCES
J. A. Reeds, Personal communication to N. J. A. Sloane, Jun 04 2016
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
4^2 = 16 so a(4) = 1.4.6 = 146.
19^2 = 361 so a(19) = 3.19.61 = 31961.
MATHEMATICA
nterms=100; Table[FromDigits[Flatten[Insert[d=IntegerDigits[n^2], IntegerDigits[n], Floor[Length[d]/2]+1]]], {n, nterms}] (* Paolo Xausa, Nov 24 2021 *)
PROG
(Python)
def a(n):
ss = str(n*n)
t = len(ss)//2
return int(ss[:t] + str(n) + ss[t:])
print([a(n) for n in range(1, 41)]) # Michael S. Branicky, Nov 24 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Jul 03 2016
STATUS
approved