[go: up one dir, main page]

login
A028894
a(n) = either 4a(n-1)+1 or 4a(n-1)+3 depending on corresponding term of A005614, +1 for 0, +3 for 1.
2
1, 5, 23, 95, 381, 1527, 6109, 24439, 97759, 391037, 1564151, 6256607, 25026429, 100105719, 400422877, 1601691511, 6406766047, 25627064189, 102508256759, 410033027037, 1640132108151, 6560528432607, 26242113730429
OFFSET
1,2
MATHEMATICA
f[1]={0}; f[2]={1}; f[n_] := f[n]=Join[f[n-1], f[n-2]]; a[1]=1; a[n_] := a[n]=4a[n-1]+1+2f[9][[n]]; a/@Range[1, 30]
CROSSREFS
Sequence in context: A327973 A255457 A146013 * A254824 A140529 A055489
KEYWORD
nonn
AUTHOR
John McNamara, Jan 12 2002
EXTENSIONS
Edited by Dean Hickerson, Jan 14, 2002
STATUS
approved