OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,14).
FORMULA
a(2n) = 6 * a(2n-1), a(2n+1) = 7/3 * a(2n).
G.f.: (1 + 6*x)/(1 - 14*x^2). - Georg Fischer, Nov 17 2022
EXAMPLE
a(5)=196 since (14+84)*(14+x)*(84+x)/(14*84*x) is an integer for x=196, but not an integer for any x satisfying 85 <= x <= 195.
MATHEMATICA
nxt[{n_, a_}]:={n+1, If[OddQ[n], 6*a, 7/3 a]}; NestList[nxt, {1, 1}, 20][[All, 2]] (* Harvey P. Dale, Aug 14 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jaroslav Krizek, Nov 27 2010
STATUS
approved