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-2 of 2 results.

A227470 Least k such that n divides sigma(n*k).

Original entry on oeis.org

1, 3, 2, 3, 8, 1, 4, 7, 10, 4, 43, 2, 9, 2, 8, 21, 67, 5, 37, 6, 20, 43, 137, 5, 149, 9, 34, 1, 173, 4, 16, 21, 27, 64, 76, 22, 73, 37, 6, 3, 163, 10, 257, 43, 6, 137, 281, 11, 52, 76, 67, 45, 211, 17, 109, 4, 49, 173, 353, 2, 169, 8, 32, 93, 72, 27, 401, 67
Offset: 1

Views

Author

Alex Ratushnyak, Jul 12 2013

Keywords

Comments

Theorem: a(n) always exists.
Proof: If n is a power of a prime, say n = p^a, then, by Euler's generalization of Fermat's little theorem and the multiplicative property of sigma, one can take k = x^(p^a-p^(a-1)-1) where x is a different prime from p. Similarly. if n = p^a*q^b, then take k = x^(p^a-p^(a-1)-1)*y^(q^b-q^(b-1)-1) where {x,y} are primes different from {p,q}. And so on. These k's have the desired property, and so there is always at least one candidate for the minimal k. - N. J. A. Sloane, May 01 2016

Examples

			Least k such that 9 divides sigma(9*k) is k = 10: sigma(90) = 234 = 9*26. So a(9) = 10.
Least k such that 89 divides sigma(89*k) is k = 1024: sigma(89*1024) = 184230 = 89*2070. So a(89) = 1024.
		

Crossrefs

Indices of 1's: A007691.
See A272349 for the sequence [n*a(n)]. - N. J. A. Sloane, May 01 2016

Programs

  • Maple
    A227470 := proc(n)
        local k;
        for k from 1 do
            if modp(numtheory[sigma](k*n),n) =0 then
                return k;
            end if;
        end do:
    end proc: # R. J. Mathar, May 06 2016
  • Mathematica
    lknds[n_]:=Module[{k=1},While[!Divisible[DivisorSigma[1,k*n],n],k++];k]; Array[lknds,70] (* Harvey P. Dale, Jul 10 2014 *)
  • PARI
    a227470(n) = {k=1; while(sigma(n*k)%n != 0, k++); k} \\ Michael B. Porter, Jul 15 2013

Formula

a(n) = A272349(n)/n. - R. J. Mathar, May 06 2016

A097018 a(n) is the least number such that sigma(a(n)) is divisible by the n-th prime.

Original entry on oeis.org

3, 2, 8, 4, 43, 9, 67, 37, 137, 173, 16, 73, 163, 257, 281, 211, 353, 169, 401, 283, 256, 157, 331, 1024, 193, 1009, 617, 641, 653, 677, 64, 523, 547, 277, 1489, 1811, 313, 977, 1669, 691, 1789, 1447, 4201, 1543, 787, 397, 421, 1783, 907, 457, 3727, 1433, 3373
Offset: 1

Views

Author

Labos Elemer, Aug 23 2004

Keywords

Comments

Note that a(n) always exists, because sigma(2^(p-2)) = 2^(p-1)-1 is divisible by p for p>2 (by Fermat's little theorem), so there is always a candidate for a(n). Compare A227470, A272349. - N. J. A. Sloane, May 01 2016

Examples

			n=11: a(11)=16 is the least number x such that sigma(x) is divisible by the 11th prime, 31.
		

Crossrefs

Programs

Showing 1-2 of 2 results.