A326953 a(n) = A001222(A028906(n)).
1, 1, 1, 1, 1, 1, 1, 2, 5, 3, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 1, 1, 1, 3, 1, 3, 3, 3, 4, 1, 2, 1, 2, 3, 1, 2, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 3, 3, 2, 3, 3, 1, 1, 5, 4, 3, 2, 3, 1, 7, 3, 3, 1, 1, 2, 1, 1, 1, 2, 2, 1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 1, 1, 1, 2, 1, 5, 3, 1, 1, 3, 2, 3, 1, 3, 3, 4, 1, 4, 1
Offset: 1
Examples
The 28th prime number is 107. The reverse sorted digits are 710. The factorization of 710 is 2, 5, 71, therefore the 28th term in this sequence is 3.
Links
- Joshua Michael McAteer, Table of n, a(n) for n = 1..9592
Programs
-
MATLAB
nmax= 100; p = primes(nmax); lp = length(p); lfac = zeros(1, lp); for i = 1:lp digp=str2double(regexp(num2str(p(i)), '\d', 'match')); ldigp = flip(sort(digp)); l=length(digp); conv = 10.^flip(0:(l-1)); lnum = sum(conv.*ldigp); lfac(i) = numel(factor(lnum)); end
Comments