cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A135171 3^p - 2^p, where p = prime(n).

This page as a plain text file.
%I A135171 #24 Sep 09 2024 14:58:34
%S A135171 5,19,211,2059,175099,1586131,129009091,1161737179,94134790219,
%T A135171 68629840493971,617671248800299,450283768452043891,
%U A135171 36472994178147530851,328256958598444055419,26588814218220014932459,19383245658672820642055731,14130386091162273752461387579,127173474823342767533669605651
%N A135171 3^p - 2^p, where p = prime(n).
%H A135171 Ivan Panchenko, <a href="/A135171/b135171.txt">Table of n, a(n) for n = 1..200</a>
%F A135171 a(n) = 3^A000040(n) - 2^A000040(n).
%F A135171 a(n) = A057901(n) - A034785(n). - _Michel Marcus_, Jun 14 2014
%e A135171 a(4)=2059 because the 4th prime number is 7, 3^7=2187, 2^7=128 and 2187-128=2059.
%t A135171 3^#-2^#&/@Prime[Range[20]] (* _Harvey P. Dale_, Jun 20 2011 *)
%o A135171 (Magma) [3^p-2^p: p in PrimesUpTo(100)]; // _Vincenzo Librandi_, Dec 14 2010
%Y A135171 Cf. A000040, A034785, A057901.
%K A135171 nonn
%O A135171 1,1
%A A135171 _Omar E. Pol_, Nov 25 2007
%E A135171 More terms from _Vincenzo Librandi_, Dec 14 2010