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!)
A135165 a(n) = 7^n + 5^n - 3^n - 2^n. 1
0, 7, 61, 433, 2929, 19657, 132481, 899353, 6148609, 42286537, 292180801, 2025975673, 14084892289, 98108111017, 684321789121, 4778064706393, 33385475347969, 233393324169097, 1632227907493441, 11417967508915513, 79887630241419649, 559022690779036777, 3912205202988749761 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Constants are the prime numbers in decreasing order.
LINKS
FORMULA
a(n) = 7^n + 5^n - 3^n - 2^n.
From Vincenzo Librandi, May 22 2014: (Start)
G.f.: 1/(1-7*x) + 1/(1-5*x) - 1/(1-3*x) - 1/(1-2*x).
a(n) = 17*a(n-1) - 101*a(n-2) + 247*a(n-3) - 210*a(n-4) for n>3. (End)
E.g.f.: exp(7*x) + exp(5*x) - exp(3*x) - exp(2*x). - G. C. Greubel, Sep 30 2016
EXAMPLE
a(4) = 2929 because 7^4 = 2401, 5^4 = 625, 3^4 = 81, 2^4 = 16 and 2401+625-81-16 = 2929.
MATHEMATICA
CoefficientList[Series[1/(1 - 7 x) + 1/(1 - 5 x) - 1/(1 - 3 x) - 1/(1 - 2 x), {x, 0, 40}], x] (* Vincenzo Librandi, May 22 2014 *)
LinearRecurrence[{17, -101, 247, -210}, {0, 7, 61, 433}, 30] (* Harvey P. Dale, Mar 20 2015 *)
PROG
(Magma)[7^n+5^n-3^n-2^n: n in [0..50]]; // Vincenzo Librandi, Dec 14 2010
(Magma) I:=[0, 7, 61, 433]; [n le 4 select I[n] else 17*Self(n-1)-101*Self(n-2)+247*Self(n-3)-210*Self(n-4): n in [1..30]]; // Vincenzo Librandi, May 22 2014
(PARI) a(n)=7^n+5^n-3^n-2^n \\ Charles R Greathouse IV, Sep 30 2016
CROSSREFS
Sequence in context: A275878 A129079 A249556 * A218805 A164943 A218228
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Nov 21 2007
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 April 19 16:52 EDT 2024. Contains 371794 sequences. (Running on oeis4.)