OFFSET
0,2
COMMENTS
a(n) is integer for n >= 0.
Proof: It is sufficient to prove that 3^(n+2) + 4^(2*n+1) is divisible by 13. Since from 3^2 == -4 (mod 13) follows that 3^(n+2) == -4*3^n (mod 13) and from 4^2 == 3 (mod 13) follows 4^(2*n+1) == 4*3^n (mod 13), one gets from their sum that 3^(n+2) + 4^(2*n+1) == 0 (mod 13). QED
REFERENCES
James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, Exercise 5.1.25 on page 158.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (19,-48).
FORMULA
MATHEMATICA
a[n_]:=(3^(n+2)+4^(2n+1))/13; Array[a, 20, 0]
PROG
(Magma) [(3^(n+2)+4^(2*n+1))/13 : n in [0..20]]; // Vincenzo Librandi, Jul 21 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Stefano Spezia, Jul 20 2025
STATUS
approved
