OFFSET
1,1
COMMENTS
First occurrence n of pi(a(n)) in A039994: 1, 6, 9, 30, 32, 33, 170, 173, 207, 203, 298, 804, ..., .
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..688
EXAMPLE
A039994(1) = 1, is the first occurrence of 1 which is the index of the prime 2;
A039994(6) = 2, is the first occurrence of 2 and 6 is the index of the prime 13;
A039994(9) = 3, is the first occurrence of 3 and 9 is the index of the prime 23;
A039994(30) = 4, is the first occurrence of 4 and 30 is the index of the prime 113; etc.
MATHEMATICA
f[p_] := Count[ PrimeQ[ Union[ FromDigits@# & /@ Rest@ Subsets[ IntegerDigits@ p]]], True]; t[_] := 0; p = 2; While[p < 10000001, a = f@ p; If[ t[a] == 0, t[a] = p]; p = NextPrime@ p]; t /@ Range@ 56
CROSSREFS
KEYWORD
base,nonn,changed
AUTHOR
Robert G. Wilson v, May 06 2024
STATUS
approved