login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A146887 a(n) = prime(n)*a(n-1) - a(n-2). 0
1, 1, 2, 9, 61, 662, 8545, 144603, 2738912, 62850373, 1819921905, 56354728682, 2083305039329, 85359151883807, 3668360225964372, 172327571468441677, 9129692927601444509, 538479555157016784354, 32838123171650422401085 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..18.

MATHEMATICA

seq[n_] := (v = {1, 1}; For[i = 3, i <= n, ++i, AppendTo[v, Prime[i - 1]*v[[i - 1]] - v[[i - 2]]]]; v) (* Jon Maiga, Nov 09 2018 *)

PROG

(PARI) seq(n)={my(v=vector(n)); v[1]=v[2]=1; for(n=3, n, v[n]=prime(n-1)*v[n-1] - v[n-2]); v} \\ Andrew Howroyd, Nov 08 2018

CROSSREFS

Sequence in context: A006155 A121870 A268450 * A173498 A113662 A052820

Adjacent sequences:  A146884 A146885 A146886 * A146888 A146889 A146890

KEYWORD

nonn,easy,less

AUTHOR

Roger L. Bagula, Nov 02 2008

EXTENSIONS

Edited and simpler name by Jon Maiga and Andrew Howroyd, Nov 08 2018

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 19 22:34 EST 2019. Contains 329323 sequences. (Running on oeis4.)