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

A226895
Difference sequence for A226894.
3
3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2
OFFSET
1,1
COMMENTS
The number of numbers log k between consecutive harmonic numbers is 1 or 2, so that the difference sequence for A226894 consists of 2's and 3's.
LINKS
EXAMPLE
log 1 < log 2 < h(1) < log 3 < log 4 < h(2) < ..., so that the positions of h(1) and h(2) are 3 and 6, whence a(1) = 6 - 3 = 3.
MATHEMATICA
z = 300; h[n_] := N[HarmonicNumber[n], 100]; t1 = Table[h[n], {n, 1, z}]; t2 = Table[N[Log[n], 100], {n, 1, 3 z}]; t3 = Union[t1, t2]; p[n_] := Position[t3, h[n]]; Flatten[Table[p[n], {n, 1, 3 z}]] (* A226894 *)
Differences[%] (* A226895 *)
Complement[Range[z], %%] (* A226896 *)
CROSSREFS
Cf. A226894 , A226896 (complement).
Sequence in context: A321218 A259494 A356525 * A306996 A166007 A372748
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 21 2013
STATUS
approved