OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,1,-1).
FORMULA
G.f.: x*(1+6*x+36*x^2+6*x^3+51*x^4)/(1-x-x^4+x^5). - Colin Barker, Jan 23 2012
a(n) = (50*n-8*i^(n*(n+1))-19*(-1)^n-75)/2, where i=sqrt(-1). - Bruno Berselli, Feb 22 2012
MATHEMATICA
LinearRecurrence[{1, 0, 0, 1, -1}, {1, 7, 43, 49, 101}, 60] (* Harvey P. Dale, Jul 26 2015 *)
PROG
(Haskell)
import Data.List (findIndices)
a045800 n = a045800_list !! (n-1)
a045800_list = findIndices (`elem` [1, 7, 43, 49]) $ cycle [0..99]
-- Reinhard Zumkeller, Jan 23 2012
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
More terms from Erich Friedman.
STATUS
approved