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”).

A077649
Initial digit of composite numbers.
0
4, 6, 8, 9, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
OFFSET
1,1
FORMULA
a(n) = A000030(A002808(n)).
MATHEMATICA
c[x_] := FixedPoint[x+PrimePi[ # ]+1&, x] Table[First[IntegerDigits[c[w]]], {w, 1, 128}]
First[IntegerDigits[#]]&/@Complement[Range[150], Prime[Range[ PrimePi[150]]]] (* Harvey P. Dale, Apr 26 2011 *)
PROG
(PARI) lista(nn) = forcomposite(n=1, nn, print1(digits(n)[1], ", ")); \\ Michel Marcus, Dec 13 2017
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Labos Elemer, Nov 19 2002
STATUS
approved