OFFSET
1,3
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
G.f.: -x^3*(x^14-x^10-3*x^8-8*x^6-x^4-2*x^2-2)/(x^16-2*x^8+1). - Colin Barker, Jun 20 2013
MATHEMATICA
Inv[a_, mod_] := Which[mod == 1, 0, GCD[a, mod] > 1, 0, True, Last@Reduce[a*x == 1, x, Modulus -> mod]]; Table[Inv[8, n], {n, 1, 122}]
(* Second program: *)
Table[If[EvenQ[n], 0, ModularInverse[8, n], 0], {n, 1, 100}] (* Jean-François Alcover, Mar 14 2023 *)
PROG
(PARI) a(n)=if(n%2, lift(Mod(1, n)/8), 0) \\ Charles R Greathouse IV, Jun 18 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
José María Grau Ribas, Jun 18 2013
STATUS
approved