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

A005114 Untouchable numbers, also called nonaliquot numbers: impossible values for the sum of aliquot parts function (A001065).

Original entry on oeis.org

2, 5, 52, 88, 96, 120, 124, 146, 162, 188, 206, 210, 216, 238, 246, 248, 262, 268, 276, 288, 290, 292, 304, 306, 322, 324, 326, 336, 342, 372, 406, 408, 426, 430, 448, 472, 474, 498, 516, 518, 520, 530, 540, 552, 556, 562, 576, 584, 612, 624, 626, 628, 658
Offset: 1

Views

Author

Keywords

Comments

Complement of A078923. - Lekraj Beedassy, Jul 19 2005
Chen & Zhao show that the lower density of this sequence is at least 0.06, improving on te Riele. - Charles R Greathouse IV, Dec 28 2013
Numbers k such that A048138(k) = 0. A048138(k) measures how "touchable" k is. - Jeppe Stig Nielsen, Jan 12 2020
From Amiram Eldar, Feb 13 2021: (Start)
The term "untouchable number" was coined by Alanen (1972). He found the 570 terms below 5000.
Erdős (1973) proved that the lower asymptotic density of untouchable numbers is positive, te Riele (1976) proved that it is > 0.0324, and Banks and Luca (2004, 2005) proved that it is > 1/48.
Pollack and Pomerance (2016) conjectured that the asymptotic density is ~ 0.17. (End)
The upper asymptotic density is less than 1/2 by the 'almost all' binary Goldbach conjecture, independently proved by Nikolai Chudakov, Johannes van der Corput, and Theodor Estermann. (In this context, this shows that the density of the odd numbers of this form is 0 (consider A001065(p*q) for prime p, q); full Goldbach would prove that 5 is the only odd number in this sequence.) - Charles R Greathouse IV, Dec 05 2022

References

  • Richard K. Guy, Unsolved Problems in Number Theory, 3rd ed., Springer, 2004, section B10, pp. 100-101.
  • Clifford A. Pickover, A Passion for Mathematics, Wiley, 2005; see p. 65.
  • József Sándor, Dragoslav S. Mitrinovic, Borislav Crstici, Handbook of Number Theory I, Springer Science & Business Media, 2005, page 93.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 147.
  • David Wells, The Penguin Dictionary of Curious and Interesting Numbers. Penguin Books, NY, 1986, Revised edition 1987. See p. 125.

Crossrefs

Programs

  • Mathematica
    untouchableQ[n_] := Catch[ Do[ If[n == DivisorSigma[1, k]-k, Throw[True]], {k, 0, (n-1)^2}]] === Null; Reap[ Table[ If[ untouchableQ[n], Print[n]; Sow[n]], {n, 2, 700}]][[2, 1]] (* Jean-François Alcover, Jun 29 2012, after Benoit Cloitre *)
  • PARI
    isA078923(n)=if(n==0 || n==1, return(1)); for(m=1,(n-1)^2, if( sigma(m)-m == n, return(1))); 0
    isA005114(n)=!isA078923(n)
    for(n=1,700, if (isA005114(n), print(n))) \\ R. J. Mathar, Aug 10 2006
    
  • PARI
    is(n)=if(n%2 && n<4e18, return(n==5)); forfactored(m=1,(n-1)^2, if(sigma(m)-m[1]==n, return(0))); 1 \\ Charles R Greathouse IV, Dec 05 2022
    
  • Python
    from sympy import divisor_sigma as sigma
    from functools import cache
    @cache
    def f(m): return sigma(m)-m
    def okA005114(n):
        if n < 2: return 0
        return not any(f(m) == n for m in range(1, (n-1)**2+1))
    print([k for k in range(289) if okA005114(k)]) # Michael S. Branicky, Nov 16 2024
    
  • Python
    # faster for intial segment of sequence
    from itertools import count, islice
    from sympy import divisor_sigma as sigma
    def agen(): # generator of terms
        n, touchable, t = 2, {0, 1}, 1
        for m in count(2):
            touchable.add(sigma(m)-m)
            while m > t:
                if n not in touchable:
                    yield n
                else:
                    touchable.discard(n)
                n += 1
                t = (n-1)**2
    print(list(islice(agen(), 20))) # Michael S. Branicky, Nov 16 2024

Extensions

More terms from David W. Wilson

A283152 2-untouchable numbers.

Original entry on oeis.org

208, 250, 362, 396, 412, 428, 438, 452, 478, 486, 494, 508, 672, 712, 716, 772, 844, 900, 906, 950, 1042, 1048, 1086, 1090, 1112, 1132, 1140, 1252, 1262, 1310, 1338, 1372, 1518, 1548, 1574, 1590, 1592, 1644, 1676, 1678, 1686, 1752, 1756, 1796, 1808, 1810, 1854
Offset: 1

Views

Author

Anton Mosunov, Mar 01 2017

Keywords

Comments

Let sigma(n) denote the sum of divisors of n, and s(n) := sigma(n) - n. Untouchable numbers are those numbers that do not lie in the image of s(n), and they were studied extensively (see the references). In 2016, Pollack and Pomerance conjectured that the set of untouchable numbers has a natural asymptotic density.
For n > 1, let s2(n) := s(s(n)). 2-untouchable numbers are the numbers that lie in the image of s(n), but not in the image of s2(n). Question: does the set of 2-untouchable numbers have a natural asymptotic density?
Let U(X) denote the total number of 2-untouchable numbers up to X. Then
U(10^4) = 368
U(10^5) = 4143
U(10^6) = 46854
U(10^7) = 508197
U(10^8) = 5348219
U(2*10^8) = 14616451

Examples

			All even numbers less than 208 have a preimage under s2(n), so they are not 2-untouchable.
a(1) = 208, because 208 = s(268) but 268 is untouchable. Therefore 208 is not in the image of s2(n). Note that 268 is the only preimage of 208 under s(n).
a(2) = 250, because 250 = s(290) but 290 is untouchable.
a(3) = 362, because 362 = s(430) = s(718) but both 430 and 718 are untouchable.
		

Crossrefs

Programs

  • PARI
    preim(n) =  my(v = []); for (k=1, (n-1)^2, if (sigma(k)-k == n, v = concat(v, k))); v;
    isunt(n) = if (n==1, 1, for (k=1, (n-1)^2, if (sigma(k)-k == n, return(0))); 1);
    isok(n) =  v = preim(n); if (#v, b = 1; for (k=1, #v, b = b && isunt(v[k])); b, 0); \\ Michel Marcus, Mar 04 2017

A284156 4-untouchable numbers.

Original entry on oeis.org

298, 1006, 1016, 1108, 1204, 1492, 1502, 1940, 2164, 2344, 2370, 2770, 3116, 3358, 3410, 3482, 3596, 3676, 3688, 3976, 4076, 4164, 4354, 4870, 5206, 5634, 5770, 6104, 6206, 6332, 6488, 6696, 6850, 7008, 7118, 7290, 7496, 7586, 7654, 7812, 7922, 8164, 8396, 8434
Offset: 1

Views

Author

Anton Mosunov, Mar 21 2017

Keywords

Comments

Let sigma(n) denote the sum of divisors of n, and s(n) := sigma(n) - n, with the convention that s(0)=0. Untouchable numbers are those numbers that do not lie in the image of s(n), and they were studied extensively (see the references). In 2016, Pollack and Pomerance conjectured that the set of untouchable numbers has a natural asymptotic density.
Let sk(n) denote the k-th iterate of s(n). 4-untouchable numbers are the numbers that lie in the image of s3(n), but not in the image of s4(n). Question: does the set of 4-untouchable numbers have a natural asymptotic density?

Examples

			All even numbers less than 298 have a preimage under s4(n), so they are not 4-untouchable.
a(1) = 298, because 298 = s3(668) but 668 is untouchable. Therefore 298 is not in the image of s4(n). Note that 668 is the only preimage of 298 under s3(n).
a(2) = 1006, because 1006 = s3(5366) but 5366 is untouchable.
a(3) = 1016, because 1016 = s3(4402) = s3(5378) but both 4402 and 5378 are untouchable.
		

Crossrefs

Extensions

Several missing terms inserted by Jinyuan Wang, Jan 07 2025

A284187 5-untouchable numbers.

Original entry on oeis.org

838, 904, 1970, 2066, 2176, 3134, 3562, 4226, 4756, 5038, 5312, 5580, 5692, 6612, 6706, 7096, 7210, 7384, 9266, 9530, 9704, 10316, 10742, 10828, 11482, 11578, 11724, 12384, 12592, 12682, 13098, 13236, 13772, 14582, 14846, 15184, 15284, 15338, 15484, 15520, 15578
Offset: 1

Views

Author

Anton Mosunov, Mar 21 2017

Keywords

Comments

Let sigma(n) denote the sum of divisors of n, and s(n) := sigma(n) - n, with the convention that s(0)=0. Untouchable numbers are those numbers that do not lie in the image of s(n), and they were studied extensively (see the references). In 2016, Pollack and Pomerance conjectured that the set of untouchable numbers has a natural asymptotic density.
Let sk(n) denote the k-th iterate of s(n). 5-untouchable numbers are the numbers that lie in the image of s4(n), but not in the image of s5(n). Question: does the set of 5-untouchable numbers have a natural asymptotic density?

Examples

			All even numbers less than 838 have a preimage under s5(n), so they are not 5-untouchable.
a(1) = 838, because 838 = s4(2588) but 2588 is untouchable. Therefore 838 is not in the image of s5(n). Note that 2588 is the only preimage of 838 under s4(n).
a(2) = 904, because 904 = s4(4402) = s4(5378) but both 4402 and 5378 are untouchable.
a(3) = 1970, because 1970 = s4(4312) but 4312 is untouchable.
		

Crossrefs

Extensions

Several missing terms inserted by Jinyuan Wang, Jan 07 2025

A363461 Least n-untouchable number.

Original entry on oeis.org

2, 208, 388, 298, 838
Offset: 1

Views

Author

Jinyuan Wang, Jun 03 2023

Keywords

Comments

Let s^m(k) denote the m-th iterate of s(k) = sigma(k) - k. n-untouchable numbers are the numbers that lie in the image of s^(n-1)(k), but not in the image of s^n(k).

Crossrefs

A363875 Numbers k such that there is no odd number whose aliquot sequence contains k.

Original entry on oeis.org

2, 28, 52, 88, 96, 120, 124, 146, 162, 188, 206, 208, 210, 216, 238, 246, 248, 250, 262, 268, 276, 288, 290, 292, 298, 304, 306, 322, 324, 326, 336, 342, 362, 372, 388, 396, 406, 408, 412, 426, 428, 430, 438, 448, 452, 472, 474, 478, 486, 494, 498, 508, 516
Offset: 1

Views

Author

Jinyuan Wang, Jun 25 2023

Keywords

Comments

k is in sequence iff k can never be reached when iterating the map x -> A001065(x) starting with any odd number m.
Assuming the stronger version of Goldbach conjecture, iff k is in the sequence, there are infinitely many odd numbers whose aliquot sequence contain k.
Supersequence of A005114 (except 5), A283152, A284147, A284156, A284187, ..., and untouchable perfect numbers (28, 137438691328, ...), untouchable amicable numbers (A238382), untouchable sociable numbers.

Crossrefs

Showing 1-6 of 6 results.