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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A135159 5^n-3^n+2^n. Constants are the prime numbers in decreasing order. 8
1, 4, 20, 106, 560, 2914, 14960, 76066, 384320, 1933954, 9707600, 48653026, 243613280, 1219116994, 6098749040, 30503261986, 152544909440, 762810444034, 3814310107280, 19072324590946, 95363945904800, 476826699947074, 2384154414150320, 11920834820287906, 59604362362631360, 298022376621898114 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

FORMULA

a(n)=5^n-3^n+2^n.

G.f.: 1/(1-5*x)-1/(1-3*x)+1/(1-2*x). E.g.f.: e^(5*x)-e^(3*x)+e^(2*x). [From Mohammad K. Azarian (azarian(AT)evansville.edu), Jan 16 2009]

EXAMPLE

a(4)=560 because 5^4=625, 3^4=81, 2^4=16 and we can write 625-81+16=560.

MATHEMATICA

lst={}; Do[p=5^n-3^n+2^n; AppendTo[lst, p], {n, 0, 7^2}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Aug 19 2008]

PROG

(MAGMA)[5^n-3^n+2^n: n in [0..50]][From Vincenzo Librandi, Dec 15 2010]

CROSSREFS

Cf. A000079, A000244, A000351, A007689.

Sequence in context: A195256 A131786 A061709 * A190724 A020084 A026127

Adjacent sequences:  A135156 A135157 A135158 * A135160 A135161 A135162

KEYWORD

easy,nonn

AUTHOR

Omar E. Pol (info(AT)polprimos.com), Nov 21 2007

EXTENSIONS

More terms from Vincenzo Librandi, Dec 15 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 16:49 EST 2012. Contains 206058 sequences.