cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A380393 a(n) is the least k that has exactly n proper divisors d such that (-d)^k == -d (mod k).

Original entry on oeis.org

1, 2, 6, 42, 66, 105, 2805, 561, 1365, 5005, 5565, 11305, 36465, 140505, 239785, 41041, 682465, 873145, 185185, 418285, 1683969, 2113665, 5503785, 1242241, 6697405, 8549905, 31932901, 11996985, 31260405, 30534805, 47031061, 825265, 27265161, 32306365, 55336645, 21662641, 9276085, 8964865
Offset: 0

Views

Author

Robert Israel, Jan 23 2025

Keywords

Comments

a(n) is the least k such that A378387(k) = n.
It appears that a(n) = A371513(n) except for n = 4 and n = 6. They are certainly equal when a(n) and A371513(n) are odd, since if k is odd, (-d)^k = -d^k == -d (mod k) if and only if d^k == d (mod k).

Examples

			a(4) = 42 because 42 has 3 such divisors: (-6)^42 == 36 == -6 (mod 42), (-14)^42 == 28 == -14 (mod 42), (-21)^42 == 21 == -21 (mod 42), and no smaller number works.
		

Crossrefs

Programs

  • Maple
    f:= proc(n) nops(select((t -> (-t)&^n + t mod n = 0), numtheory:-divisors(n) minus {n})) end proc:
    N:= 30: # for a(0) .. a(N)
    V:= Array(0..N): count:= 0:
    for i from 1 while count < N+1 do
      v:= f(i);
      if v <= N and V[v] = 0 then V[v]:= i; count:= count+1 fi;
    od:
    convert(V,list);
  • PARI
    a(n) = my(k=1); while (sumdiv(k, d, if (dMichel Marcus, Jan 24 2025

Formula

A378387(a(n)) = n.
Showing 1-1 of 1 results.