OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A161382(n) + 1. - Reinhard Zumkeller, Aug 10 2014
MATHEMATICA
With[{x=10}, Riffle[Table[PadRight[{}, n^2, 1], {n, 1, x, 2}], Table[PadRight[{}, m^2, 2], {m, 2, x+1, 2}]]//Flatten] (* Harvey P. Dale, Jul 26 2024 *)
PROG
(Haskell)
a161385 = (+ 1) . a161382 -- Reinhard Zumkeller, Aug 10 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 29 2009
STATUS
approved