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
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
