OFFSET
1,1
LINKS
FORMULA
a(n) = 5^n if n is even,
5^(n-1) * 7 if n is odd.
a(n + 2) = 25 * a(n).
G.f.: z * (7 + 25 * z)/(1 - 25 * z^2).
From Amiram Eldar, Nov 10 2023: (Start)
Sum_{n>=1} 1/a(n) = 4/21.
Sum_{n>=1} (-1)^(n+1)/a(n) = 3/28. (End)
EXAMPLE
a(3) = 175 because 175 == 1 (mod 6) and 175 = 5^2 * 7 has 3 prime factors, counted with multiplicity.
MAPLE
f:= proc(n) if n::odd then 7 * 5^(n-1) else 5^n fi end proc:
map(f, [$1..30]);
MATHEMATICA
LinearRecurrence[{0, 25}, {7, 25}, 26] (* Amiram Eldar, Nov 10 2023 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zak Seidov and Robert Israel, Oct 31 2023
STATUS
approved