A073169 a(n)=A002808(n)-n, difference between n-th composite and n.
3, 4, 5, 5, 5, 6, 7, 7, 7, 8, 9, 9, 9, 10, 10, 10, 10, 10, 11, 12, 12, 12, 12, 12, 13, 13, 13, 14, 15, 15, 15, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18, 19, 19, 19, 19, 19, 20, 20, 20, 21, 22, 22, 22, 22, 22, 23, 23, 23, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 26, 26
Offset: 1
Keywords
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
c[n_Integer] := FixedPoint[n+PrimePi[ # ]+1&, n] Table[c[w]-w, {w, 1, 128}] With[{c=Select[Range[100],CompositeQ]},#[[1]]-#[[2]]&/@Thread[ {c,Range[ Length[ c]]}]] (* Harvey P. Dale, Feb 03 2015 *)
Formula
a(n)=1+A073425(n). [From R. J. Mathar, Jul 31 2009]
Comments