login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A248918
a(n) = index of (n+1)-th prime power in A247665.
3
1, 2, 3, 4, 5, 7, 6, 8, 9, 31, 10, 11, 12, 27, 28, 14, 16, 63, 17, 18, 19, 20, 32, 21, 22, 23, 127, 24, 25, 26, 29, 115, 30, 33, 34, 35, 36, 37, 38, 39, 40, 111, 41, 255, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 56, 58, 59, 60, 61, 62, 64, 66, 67
OFFSET
1,2
PROG
(Haskell)
import Data.List (elemIndex); import Data.Maybe (fromJust)
a248918 = (+ 1) . fromJust . (`elemIndex` a247665_list) . a000961 . (+ 1)
CROSSREFS
Cf. A248387 (subsequence), A000961.
Sequence in context: A166277 A344009 A145342 * A318936 A088750 A056018
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 16 2014
STATUS
approved