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.

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