OFFSET
1,3
COMMENTS
Let p' be p with digit reversal in base b. If p' is composite then all multiplication operations c * d = p' in base b of integers c,d > 1 are using carry in long multiplication. For A000040(n) this is the case in A000040(n) - (a(n)+1) bases.
Prime indices of numbers in A228768 are also among the indices of the records in the rational number sequence a(n)/(n-1) with n > 1. See also the plot of this sequence in the link section.
LINKS
Thomas Scheuerle, Table of n, a(n) for n = 1..4000
Thomas Scheuerle, Scatterplot a(n)/(n-1) for the first 2000 values. Will this quotient remain inside the interval 1..2.5 for any n? For n = 2..2000 a mean value of approximately 1.65... (orange line in plot) was observed.
EXAMPLE
a(3) = 3:
prime(3) = 5 in bases 2..5:
5 = 101_2; reversing digits gives 101_2 = 5 (prime).
5 = 12_3; reversing digits gives 21_3 = 7 (prime).
5 = 11_4; reversing digits gives 11_4 = 5 (prime).
5 = 10_5; reversing digits gives 01_5 = 1 (nonprime).
PROG
(PARI) revprime(p, b)=my(q, t=p); while(t, q=b*q+t%b; t\=b); isprime(q)
a(n) = sum(b = 2, prime(n), revprime(prime(n), b))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Thomas Scheuerle, Jan 07 2023
STATUS
approved