OFFSET
1,2
LINKS
Reiner Moewald and Vincenzo Librandi, Table of n, a(n) for n = 1..1000 (first 500 terms from Reiner Moewald)
FORMULA
a(n) := 2*z^2-2*z+1, where z = ceiling(n*sqrt(2)/2). - Giovanni Resta, Jan 10 2014
MATHEMATICA
a[n_] := Block[{z = Ceiling[Sqrt[2]*n/2]}, 1-2*z+2*z^2]; Array[a, 50] (* Giovanni Resta, Jan 10 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reiner Moewald, Jan 06 2014
STATUS
approved