login
A241497
q-Pell numbers with q=2.
1
0, 1, 2, 6, 20, 88, 496, 3808, 39360, 566144, 11208448, 312282624, 12102016000, 663758845952, 50897375227904, 5539307216494592, 844981210166968320, 183201981290428727296, 55743092552083293274112
OFFSET
0,3
FORMULA
Recurrence: a(n) = 2*a(n-1) + 2^(n-2) a(n-2), a(0) = 0, a(1) = 1.
PROG
(Sage) # sage -i ore_algebra
from ore_algebra import *
R.<x> = QQ['x']; A.<Qx> = OreAlgebra(R, 'Qx', q=2)
print((Qx^2 - 2*Qx - x).to_list([0, 1], 10))
CROSSREFS
Cf. A015459.
Sequence in context: A304932 A293032 A374346 * A003069 A079468 A124382
KEYWORD
nonn
AUTHOR
Ralf Stephan, Apr 24 2014
STATUS
approved