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.

A007965 a(n) = n^prime(n) - prime(n)^n.

This page as a plain text file.
%I A007965 #24 Aug 05 2015 11:51:41
%S A007965 -1,-1,118,13983,48667074,13055867207,232630103648534,
%T A007965 144115171092292831,8862938117851348434466,
%U A007965 99999999999999579292766699799,191943424957750455095669944886980,8505622499821102144569548732108989899311
%N A007965 a(n) = n^prime(n) - prime(n)^n.
%H A007965 Matthew House, <a href="/A007965/b007965.txt">Table of n, a(n) for n = 1..96</a>
%e A007965 a(3) = 3^5 - 5^3 = 243 - 125 = 118.
%e A007965 a(4) = 16384 - 2401 = 13983.
%t A007965 lst={};Do[p=Prime[n];AppendTo[lst, n^p-p^n], {n, 4!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Sep 19 2008 *)
%o A007965 (PARI) vector(13, n, n^prime(n) - prime(n)^n) \\ _Michel Marcus_, Aug 05 2015
%Y A007965 Cf. A000312, A051674.
%K A007965 sign
%O A007965 1,3
%A A007965 Dennis S. Kluk (mathemagician(AT)ameritech.net)
%E A007965 More terms from _Labos Elemer_, Jul 09 2001