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.

A097499 Numbers of the form p^q + q^p where p and q are consecutive primes.

This page as a plain text file.
%I A097499 #20 Jul 07 2024 02:57:49
%S A097499 17,368,94932,1996813914,36314872537968,8660320497414243870,
%T A097499 244552822542936127033092,257904243416235317958787975746,
%U A097499 3091062959814255272215316579358416079052
%N A097499 Numbers of the form p^q + q^p where p and q are consecutive primes.
%C A097499 The first term is the only prime in the sequence.
%H A097499 Amiram Eldar, <a href="/A097499/b097499.txt">Table of n, a(n) for n = 1..75</a>
%F A097499 a(n) = A053089(n) + A078422(n). - _Amiram Eldar_, Jul 07 2024
%t A097499 lst={}; Do[p=Prime[n]; q=Prime[n+1]; a=p^q+q^p; AppendTo[lst,a],{n,4!}]; lst (* _Vladimir Joseph Stephan Orlovsky_, Aug 16 2009 *)
%t A097499 First[#]^Last[#]+Last[#]^First[#]&/@Partition[Prime[Range[10]],2,1] (* _Harvey P. Dale_, Sep 20 2011 *)
%o A097499 (PARI) f(n) = for(x=1,n,p=prime(x);q=prime(x+1);v=p^q+q^p;print1(v","))
%Y A097499 Cf. A053089, A078422.
%K A097499 nonn
%O A097499 1,1
%A A097499 _Cino Hilliard_, Aug 24 2004
%E A097499 Offset corrected by _Amiram Eldar_, Jul 07 2024