OFFSET
1,3
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
FORMULA
From Chai Wah Wu, Jun 07 2016: (Start)
G.f.: x^2*(1 + 3*x - 4*x^2 + 2*x^3 + x^4 - x^5)/((1 - x)^3*(1 + x)^2).
a(2*n) = n*(n-1) for n > 1.
a(2*n+1) = n*(n+3).
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5) for n > 7. (End)
PROG
(Haskell)
import Data.List (elemIndex)
import Data.Maybe (fromJust)
a193422 n = a193422_list !!(n-1)
a193422_list = map (fromJust . (`elemIndex` a193358_list)) [1..]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Jul 27 2011
STATUS
approved