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

A359276
a(n) = greatest integer k such that (n+k)! <= n^n.
0
0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16
OFFSET
1,6
MATHEMATICA
a[n_] := Select[-1 + Range[1300], (n + #)! <= n^n < (n + # + 1)! &]
Flatten[Table[a[n], {n, 1, 200}]]
CROSSREFS
Sequence in context: A226762 A347697 A300763 * A002265 A242601 A110655
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 26 2023
STATUS
approved