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!)
A085298 a(n) is the smallest exponent x such that prime(n)^x when reversed is a prime. 5

%I #16 Sep 04 2019 16:00:48

%S 1,1,1,1,1,1,1,2,8,7,1,1,2,5,15,10,12,4,39,1,1,1,11,2,1,1,10,1,23,1,5,

%T 1,243,2,1,1,1,23,1,34,1,1,1,2,58,1,3,9,166,17,68,8,8,3,7,5,5,2,2,2,

%U 61,11,97,1,1,10,2,1,1,41,1,1,66,1,5,1,1,2,2,8,40,2,8,19,2,2,723

%N a(n) is the smallest exponent x such that prime(n)^x when reversed is a prime.

%C It is conjectured that for every n such exponent exists.

%H Giovanni Resta, <a href="/A085298/b085298.txt">Table of n, a(n) for n = 1..100</a>

%F a(n) = Min{x; reversed(prime(n)^x) is a prime}.

%e a(n)=1 means that rev(prime(n)) is prime i.e. prime(n) is in A007500;

%e a(n)=2 means that rev(prime(n)^2) is prime but rev(prime(n)) is not, like n=8:p=19 and 91 is not a prime but rev[19^2]=rev[361]=163 is a prime;

%e For n, the first k exponent providing rev(prime(n)^k) prime can be quite large, like at n=87: rev(p(87)^723)=rev(449^723) is the first [probably] prime has 1918 decimal digits: 948......573.

%p a:= proc(n) local k, p; p:= ithprime(n); for k while not isprime((s->

%p parse(cat(seq(s[-i], i=1..length(s)))))(""||(p^k))) do od; k

%p end:

%p seq(a(n), n=1..50); # _Alois P. Heinz_, Sep 04 2019

%t a[n_] := Block[{k = 1}, While[! PrimeQ@ FromDigits@ Reverse@ IntegerDigits[ Prime[n]^k], k++]; k]; Array[a, 87] (* _Giovanni Resta_, Sep 04 2019 *)

%o (PARI) a(n) = {my(x=1, p=prime(n)); while (!ispseudoprime(fromdigits(Vecrev(digits(p^x)))), x++); x;} \\ _Michel Marcus_, Sep 04 2019

%Y Cf. A000040, A057708, A058993, A056994, A059695, A003459, A007500, A055387, A061461, A068652.

%K base,nonn

%O 1,8

%A _Labos Elemer_, Jun 24 2003

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 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)