OFFSET
0,2
COMMENTS
Smallest index of n in A188170.
a(n) exists for all n, since 3^(2n-1) has exactly n divisors of the form 8*k + 3, namely 3^1, 3^3, ..., 3^(2n-1). This actually gives an upper bound (which is too far from reality when n is large) for a(n).
LINKS
Bert Dobbelaere, Table of n, a(n) for n = 0..200
FORMULA
a(2n-1) <= 3^(2n-2) * 11, since 3^(2n-2) * 11 has exactly 2n-1 divisors congruent to 3 modulo 8: 3^1, 3^3, ..., 3^(2n-3), 3^0 * 11, 3^2 * 11, ..., 3^(2n-2) * 11.
a(2n) <= 3^(n-1) * 187, since 3^(n-1) * 187 has exactly 2n divisors congruent to 3 modulo 8: 3^1, 3^3, ..., 3^a, 3^1 * 17, 3^3 * 17, ..., 3^a * 17, 3^0 * 11, 3^2 * 11, ..., 3^b * 11, 3^0 * 187, 3^2 * 187, ... 3^b * 187, where a is the largest odd number <= n-1 and b is the largest even number <= n-1.
EXAMPLE
a(4) = 297 since it is the smallest number with exactly 4 divisors congruent to 3 modulo 8, namely 3, 11, 27 and 297.
PROG
(PARI) res(n, a, b) = sumdiv(n, d, (d%a) == b)
a(n) = for(k=1, oo, if(res(k, 8, 3)==n, return(k)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Apr 05 2021
EXTENSIONS
More terms from Bert Dobbelaere, Apr 09 2021
STATUS
approved
