login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A355771 a(n) is the smallest integer that has exactly n divisors from A333369. 5

%I #36 Jul 30 2022 12:53:26

%S 1,3,9,15,45,105,195,315,945,900,1575,2100,3900,6825,11655,10500,6300,

%T 18900,25200,35100,27300,31500,44100,94500,157500,107100,81900,233100,

%U 220500,598500,245700,333900,409500,491400,900900,573300,600600,1228500,1669500,1965600

%N a(n) is the smallest integer that has exactly n divisors from A333369.

%H Michael S. Branicky, <a href="/A355771/b355771.txt">Table of n, a(n) for n = 1..87</a>

%e 15 has 4 divisors: {1, 3, 5, 15} all of which are in A333369 integers, and no smaller number has this property, hence a(4) = 15.

%t q[n_] := AllTrue[Tally @ IntegerDigits[n], EvenQ[Plus @@ #] &]; f[n_] := DivisorSum[n, 1 &, q[#] &]; seq[len_, nmax_] := Module[{s = Table[0, {len}], c = 0, n = 1, i}, While[c < len && n < nmax, i = f[n]; If[i <= len && s[[i]] == 0, c++; s[[i]] = n]; n++]; s]; seq[40, 10^7] (* _Amiram Eldar_, Jul 17 2022 *)

%o (PARI) issimber(m) = my(d=digits(m), s=Set(d)); for (i=1, #s, if (#select(x->(x==s[i]), d) % 2 != (s[i] % 2), return (0))); return (1); \\ A333369

%o a(n) = my(k=1); while (sumdiv(k, d, issimber(d)) != n, k++); k; \\ _Michel Marcus_, Jul 18 2022

%o (Python)

%o from sympy import divisors

%o from itertools import count, islice

%o def c(n): s = str(n); return all(s.count(d)%2 == int(d)%2 for d in set(s))

%o def f(n): return sum(1 for d in divisors(n, generator=True) if c(d))

%o def agen():

%o n, adict = 1, dict()

%o for k in count(1):

%o fk = f(k)

%o if fk not in adict: adict[fk] = k

%o while n in adict: yield adict[n]; n += 1

%o print(list(islice(agen(), 29))) # _Michael S. Branicky_, Jul 23 2022

%Y Cf. A333369, A353735, A355770, A355772, A355773.

%Y Cf. A005231, A053624.

%Y Similar sequences: A087997, A333456, A355303, A355699.

%K nonn,base

%O 1,2

%A _Bernard Schott_, Jul 17 2022

%E More terms from _Amiram Eldar_, Jul 17 2022

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 16 16:05 EDT 2024. Contains 375177 sequences. (Running on oeis4.)