OFFSET
0,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
FORMULA
a(0)=0, a(1)=1, a(n) = a(n-2)*2 + floor(sqrt(a(n-1))).
MATHEMATICA
RecurrenceTable[{a[0]==0, a[1]==1, a[n]==2a[n-2]+Floor[Sqrt[a[n-1]]]}, a, {n, 50}] (* Harvey P. Dale, Jul 25 2019 *)
PROG
(Python)
import math
prpr = 0
prev = 1
for n in range(55):
. current = prpr*2 + int(math.sqrt(prev))
. print prpr,
. prpr = prev
. prev = current
CROSSREFS
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, May 05 2012
STATUS
approved