OFFSET
1,2
EXAMPLE
585 is in the sequence as A188171(585) = 4 via the divisors 5, 13, 45 and 117 and no positive integer < 585 has at least four such (5 (mod 8)) divisors.
MATHEMATICA
Function[{s, r}, Map[FirstPosition[s, #][[1]] &, r]] @@ {#, Union@ FoldList[Max, #]} &@ Array[DivisorSum[#, 1 &, Mod[#, 8] == 5 &] &, 10^6] (* Michael De Vlieger, Apr 08 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
David A. Corneth, Apr 06 2021
STATUS
approved