login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A075374 a(n+2) = n*a(n+1) - a(n), with a(1)=1, a(2)=2. 5
1, 2, 1, 0, -1, -4, -19, -110, -751, -5898, -52331, -517412, -5639201, -67153000, -867349799, -12075744186, -180268812991, -2872225263670, -48647560669399, -872783866785512, -16534245908255329, -329812134298321068, -6909520574356487099, -151679640501544395110 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Starting with offset 5 unsigned: (1, 4, 19, 110, 751, ...) = eigensequence of triangle A003991. - Gary W. Adamson, May 17 2010
LINKS
FORMULA
a(n+1) = (a(n) + a(n+2))/n with a(1) = 1, a(2) = 2.
MAPLE
a[1] := 1:a[2] := 2:for n from 1 to 45 do a[n+2] := n*a[n+1]-a[n]:od:seq(a[i], i=1..45);
MATHEMATICA
a[n_]:= a[n]= If[n<3, n, (n-2)*a[n-1] -a[n-2]];
Table[a[n], {n, 50}] (* G. C. Greubel, Mar 04 2022 *)
PROG
(Magma) [n le 2 select n else (n-2)*Self(n-1) - Self(n-2): n in [1..50]]; // G. C. Greubel, Mar 04 2022
(Sage)
@CachedFunction
def a(n): return n if (n<3) else (n-2)*a(n-1) - a(n-2) # A075374
[a(n) for n in (1..50)] # G. C. Greubel, Mar 04 2022
CROSSREFS
Cf. A003991. - Gary W. Adamson, May 17 2010
Sequence in context: A266972 A339650 A266493 * A293024 A292948 A210872
KEYWORD
sign
AUTHOR
Amarnath Murthy, Sep 20 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 30 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 20 22:00 EDT 2024. Contains 375340 sequences. (Running on oeis4.)