OFFSET
0,1
COMMENTS
Row 2 of the array at A065775.
Apparently a(n)=A162330(n), n>0. - R. J. Mathar, Jan 29 2011
FORMULA
T(0,1)=3, T(1,1)=2, and for m>=1,
T(4m-2,1)=2m-1, T(4m-1,1)=2m, T(4m,1)=2m+1, T(4m+1,1)=2m+2.
G.f.: (2*x^5-2*x^4+x^3-x^2-x+3) / ((x-1)^2*(x+1)*(x^2+1)). - Colin Barker, Feb 19 2014
EXAMPLE
a(0)=3 counts (0,0) to (2,1) to (1,3) to (0,1).
PROG
(Python)
def a(n):
if n < 2: return [3, 2][n]
m, r = divmod(n, 4)
return [2*m+1, 2*m+2][r%2]
print([a(n) for n in range(70)]) # Michael S. Branicky, Mar 02 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Dec 20 2010
STATUS
approved