OFFSET
1,1
COMMENTS
NE to SW Diagonal of Ulam's Spiral, with 101 at center.
The sequence did not match the original definition. A working definition might be a(2n)=4n^2-10n+107, a(2n-1)=4n^2+2n+101, a(n)=n^2-n+105+2*(-1)^n*(1-2*n), but this seems to be unrelated to Ulam spirals. [R. J. Mathar, Jun 11 2009]
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
EXAMPLE
SW-NE diagonal in:
137 136 135 134 133 132 131
138 117 116 115 114 113 130
139 118 105 104 103 112 129
140 119 106 101 102 111 128
141 120 107 108 109 110 127
142 121 122 123 124 125 126
143 144 145 146 147 148 149
MATHEMATICA
CoefficientList[Series[(107*x^4-6*x^3-194*x^2-6*x+107)/((1+x)^2*(1-x)^3), {x, 0, 32}], x] (* Georg Fischer, Dec 03 2024 *)
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Milton L. Brown (miltbrown(AT)earthlink.net), Jun 08 2009
EXTENSIONS
Edited by Georg Fischer, Dec 03 2024
STATUS
approved