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!)
A135171 3^p - 2^p, where p = prime(n). 3
5, 19, 211, 2059, 175099, 1586131, 129009091, 1161737179, 94134790219, 68629840493971, 617671248800299, 450283768452043891, 36472994178147530851, 328256958598444055419, 26588814218220014932459, 19383245658672820642055731, 14130386091162273752461387579, 127173474823342767533669605651 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = 3^A000040(n) - 2^A000040(n).
a(n) = A057901(n) - A034785(n). - Michel Marcus, Jun 14 2014
EXAMPLE
a(4)=2059 because the 4th prime number is 7, 3^7=2187, 2^7=128 and 2187-128=2059.
MATHEMATICA
3^#-2^#&/@Prime[Range[20]] (* Harvey P. Dale, Jun 20 2011 *)
PROG
(Magma)[3^p-2^p: p in PrimesUpTo(100)] // Vincenzo Librandi, Dec 14 2010
CROSSREFS
Sequence in context: A106991 A102262 A123281 * A058765 A317340 A328716
KEYWORD
nonn
AUTHOR
Omar E. Pol, Nov 25 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 14 2010
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 18 02:22 EDT 2024. Contains 371767 sequences. (Running on oeis4.)