login
A081467
a(n) = smallest (n+k) such that n divides the sum (n+1)+ (n+2) + ... (n+k) = k*n + k*(k+1)/2.
6
2, 5, 5, 11, 9, 9, 13, 23, 17, 14, 21, 20, 25, 21, 20, 47, 33, 26, 37, 35, 27, 33, 45, 39, 49, 38, 53, 35, 57, 45, 61, 95, 44, 50, 49, 44, 73, 57, 51, 55, 81, 62, 85, 76, 54, 69, 93, 80, 97, 74, 68, 91, 105, 81, 65, 104, 75, 86, 117, 75, 121, 93, 90, 191, 90, 77, 133, 84, 92, 90, 141, 135, 145
OFFSET
1,1
COMMENTS
The condition can obviously be simplified to "n divides k*(k+1)/2" (cf. A011772), which is the case when k+1 = n is odd (so k/2 is integer) or else k = n is odd, whence a(n) <= 2*n - n%2, where % is the mod/remainder operator. - M. F. Hasler, Apr 17 2025
FORMULA
a(n) = n + A011772(n). - M. F. Hasler, Apr 17 2025
EXAMPLE
a(4) = 11 as 4 divides 5+6+7+8+9+10+11 and not a smaller sum.
PROG
(PARI) A081467(n)=A011772(n)+n \\ There are efficient programs for A011772.
apply( {A081467(n)=for(k=1, oo, k*(k+1)/2%n||return(n+k))}, [1..99]) \\ Brute-force computation, for illustration. - M. F. Hasler, Apr 17 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Mar 23 2003
EXTENSIONS
More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Apr 06 2003
More terms from M. F. Hasler, Apr 17 2025
STATUS
approved