OFFSET
1,3
LINKS
Bruno Berselli, Table of n, a(n) for n = 1..1000
EXAMPLE
a(7) = 36 because a(6) is 19 and sqrt(3)*a(5) = 17.32, round(19+17.32) = 36
MATHEMATICA
RecurrenceTable[{a[0] == a[1] == 1, a[n] == Floor[a[n - 1] + Sqrt[3] a[n - 2] + 1/2]}, a[n], {n, 0, 40}] (* Bruno Berselli, Mar 25 2014 *)
nxt[{a_, b_}]:={b, Round[b+a*Sqrt[3]]}; NestList[nxt, {1, 1}, 40][[All, 1]] (* Harvey P. Dale, Aug 27 2017 *)
PROG
(PARI) lista(nn) = {va = vector(nn); va[1] = 1; va[2] = 1; print1(va[1], ", ", va[2], ", "); for (n=3, nn, va[n] = round(va[n-1] + sqrt(3)*va[n-2]); print1(va[n], ", "); ); } \\ Michel Marcus, Mar 24 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ben Paul Thurston, Jan 09 2008
EXTENSIONS
More terms from Michel Marcus, Mar 24 2014
STATUS
approved