OFFSET
1,9
COMMENTS
Inspired by A133906.
First occurrence of k with k = 0, 1, 2,...: 1, 4, 10, 9, 27, 100, 54, 64, 176, 544, 352, 648, 649, 129, 128, 1378, 513, 729, 7776, 1377, 5832, 1701, 3728, 13312, 13825, ...
Records: 0, 1, 3, 4, 6, 7, 14, 16, 17, 19, 21, 22, ..., ; and they occur at: 1, 4, 9, 27, 54, 64, 128, 513, 729, 1377, 1701, 3728, 6656, ...
LINKS
Hieronymus Fischer, Table of n, a(n) for n = 1..10000
EXAMPLE
a(9) = 3 because binomial(9+2,2) mod 2 = binomial(9+3,3) mod 3 = binomial(9+6,6) mod 6 = 1. [Corrected by Jon E. Schoenfield, Aug 28 2018]
MATHEMATICA
a[n_] := Block[{c = 0, m = 1}, While[m < n + 1, If[ Mod[ Binomial[n + m, m], m] == 1, c++]; m++]; c]; Array[a, 105]
Table[Count[Table[Mod[Binomial[n+m, m], m], {m, n}], 1], {n, 120}] (* Harvey P. Dale, Aug 18 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hieronymus Fischer and Robert G. Wilson v, Aug 09 2018
STATUS
approved