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-10 of 12 results. Next

A352616 Numbers k such that A155085(k) is in A037074.

Original entry on oeis.org

7, 17, 50, 71, 449, 851, 881, 1467, 2591, 5123, 9521, 18167, 29817, 34859, 38027, 39761, 52415, 84359, 90611, 92711, 106721, 147267, 179999, 204479, 206081, 342791, 388961, 596231, 606609, 847601, 922607, 1060307, 1256879, 1292831, 1389671, 1590983, 1976015, 2157227, 2169971, 2268449, 2571911
Offset: 1

Views

Author

J. M. Bergot and Robert Israel, Mar 23 2022

Keywords

Comments

Numbers k such that k + A000203(k) is the product of a twin prime pair.

Examples

			a(3) = 50 is a term because 50 + A000203(50) = 143 = 11*13 where (11,13) is a twin prime pair.
		

Crossrefs

Programs

  • Maple
    filter:= proc(n) local t,s; t:= n + numtheory:-sigma(n);
      if t::even or not issqr(t+1) then return false fi;
      s:= sqrt(t+1);
      isprime(s+1) and isprime(s-1)
    end proc:
    select(filter, [$1..3000000]);

A001065 Sum of proper divisors (or aliquot parts) of n: sum of divisors of n that are less than n.

Original entry on oeis.org

0, 1, 1, 3, 1, 6, 1, 7, 4, 8, 1, 16, 1, 10, 9, 15, 1, 21, 1, 22, 11, 14, 1, 36, 6, 16, 13, 28, 1, 42, 1, 31, 15, 20, 13, 55, 1, 22, 17, 50, 1, 54, 1, 40, 33, 26, 1, 76, 8, 43, 21, 46, 1, 66, 17, 64, 23, 32, 1, 108, 1, 34, 41, 63, 19, 78, 1, 58, 27, 74, 1, 123, 1, 40, 49, 64, 19, 90, 1, 106
Offset: 1

Views

Author

Keywords

Comments

Also total number of parts in all partitions of n into equal parts that do not contain 1 as a part. - Omar E. Pol, Jan 16 2013
Related concepts: If a(n) < n, n is said to be deficient, if a(n) > n, n is abundant, and if a(n) = n, n is perfect. If there is a cycle of length 2, so that a(n) = b and a(b) = n, b and n are said to be amicable. If there is a longer cycle, the numbers in the cycle are said to be sociable. See examples. - Juhani Heino, Jul 17 2017
Sum of the smallest parts in the partitions of n into two parts such that the smallest part divides the largest. - Wesley Ivan Hurt, Dec 22 2017
a(n) is also the total number of parts congruent to 0 mod k in the partitions of k*n into equal parts that do not contain k as a part (the comment dated Jan 16 2013 is the case for k = 1). - Omar E. Pol, Nov 23 2019
Fixed points are in A000396. - Alois P. Heinz, Mar 10 2024

Examples

			x^2 + x^3 + 3*x^4 + x^5 + 6*x^6 + x^7 + 7*x^8 + 4*x^9 + 8*x^10 + x^11 + ...
For n = 44, sum of divisors of n = sigma(n) = 84; so a(44) = 84-44 = 40.
Related concepts: (Start)
From 1 to 17, all n are deficient, except 6 and 12 seen below. See A005100.
Abundant numbers: a(12) = 16, a(18) = 21. See A005101.
Perfect numbers: a(6) = 6, a(28) = 28. See A000396.
Amicable numbers: a(220) = 284, a(284) = 220. See A259180.
Sociable numbers: 12496 -> 14288 -> 15472 -> 14536 -> 14264 -> 12496. See A122726. (End)
For n = 10 the sum of the divisors of 10 that are less than 10 is 1 + 2 + 5 = 8. On the other hand, the partitions of 10 into equal parts that do not contain 1 as a part are [10], [5,5], [2,2,2,2,2], there are 8 parts, so a(10) = 8. - _Omar E. Pol_, Nov 24 2019
		

References

  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 840.
  • George E. Andrews, Number Theory. New York: Dover, 1994; Pages 1, 75-92; p. 92 #15: Sigma(n) / d(n) >= n^(1/2).
  • Carl Pomerance, The first function and its iterates, pp. 125-138 in Connections in Discrete Mathematics, ed. S. Butler et al., Cambridge, 2018.
  • H. J. J. te Riele, Perfect numbers and aliquot sequences, pp. 77-94 in J. van de Lune, ed., Studieweek "Getaltheorie en Computers", published by Math. Centrum, Amsterdam, Sept. 1980.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • 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 91.

Crossrefs

Least inverse: A070015, A359132.
Values taken: A078923, values not taken: A005114.
Records: A034090, A034091.
First differences: A053246, partial sums: A153485.
a(n) = n - A033879(n) = n + A033880(n). - Omar E. Pol, Dec 30 2013
Row sums of A141846 and of A176891. - Gary W. Adamson, May 02 2010
Row sums of A176079. - Mats Granvik, May 20 2012
Alternating row sums of A231347. - Omar E. Pol, Jan 02 2014
a(n) = sum (A027751(n,k): k = 1..A000005(n)-1). - Reinhard Zumkeller, Apr 05 2013
For n > 1: a(n) = A240698(n,A000005(n)-1). - Reinhard Zumkeller, Apr 10 2014
A134675(n) = A007434(n) + a(n). - Conjectured by John Mason and proved by Max Alekseyev, Jan 07 2015
Cf. A037020 (primes), A053868, A053869 (odd and even terms).
Cf. A048138 (number of occurrences), A238895, A238896 (record values thereof).
Cf. A007956 (products of proper divisors).
Cf. A005100, A005101, A000396, A259180, A122726 (related concepts).

Programs

  • Haskell
    a001065 n = a000203 n - n  -- Reinhard Zumkeller, Sep 15 2011
    
  • Magma
    [SumOfDivisors(n)-n: n in [1..100]]; // Vincenzo Librandi, May 06 2015
    
  • Maple
    A001065 := proc(n)
        numtheory[sigma](n)-n ;
    end proc:
    seq( A001065(n),n=1..100) ;
  • Mathematica
    Table[ Plus @@ Select[ Divisors[ n ], #Zak Seidov, Sep 10 2009 *)
    Table[DivisorSigma[1, n] - n, {n, 1, 80}] (* Jean-François Alcover, Apr 25 2013 *)
    Array[Plus @@ Most@ Divisors@# &, 80] (* Robert G. Wilson v, Dec 24 2017 *)
  • MuPAD
    numlib::sigma(n)-n$ n=1..81 // Zerinvary Lajos, May 13 2008
    
  • PARI
    {a(n) = if( n==0, 0, sigma(n) - n)} /* Michael Somos, Sep 20 2011 */
    
  • Python
    from sympy import divisor_sigma
    def A001065(n): return divisor_sigma(n)-n # Chai Wah Wu, Nov 04 2022
    
  • Sage
    [sigma(n, 1)-n for n in range(1, 81)] # Stefano Spezia, Jul 14 2025

Formula

G.f.: Sum_{k>0} k * x^(2*k)/(1 - x^k). - Michael Somos, Jul 05 2006
a(n) = sigma(n) - n = A000203(n) - n. - Lekraj Beedassy, Jun 02 2005
a(n) = A155085(-n). - Michael Somos, Sep 20 2011
Equals inverse Mobius transform of A051953 = A051731 * A051953. Example: a(6) = 6 = (1, 1, 1, 0, 0, 1) dot (0, 1, 1, 2, 1, 4) = (0 + 1 + 1 + 0 + 0 + 4), where A051953 = (0, 1, 1, 2, 1, 4, 1, 4, 3, 6, 1, 8, ...) and (1, 1, 1, 0, 0, 1) = row 6 of A051731 where the 1's positions indicate the factors of 6. - Gary W. Adamson, Jul 11 2008
a(n) = A006128(n) - A220477(n) - n. - Omar E. Pol Jan 17 2013
a(n) = Sum_{i=1..floor(n/2)} i*(1-ceiling(frac(n/i))). - Wesley Ivan Hurt, Oct 25 2013
Dirichlet g.f.: zeta(s-1)*(zeta(s) - 1). - Ilya Gutkovskiy, Aug 07 2016
a(n) = 1 + A048050(n), n > 1. - R. J. Mathar, Mar 13 2018
Erdős (Elem. Math. 28 (1973), 83-86) shows that the density of even integers in the range of a(n) is strictly less than 1/2. The argument of Coppersmith (1987) shows that the range of a(n) has density at most 47/48 < 1. - N. J. A. Sloane, Dec 21 2019
G.f.: Sum_{k >= 2} x^k/(1 - x^k)^2. Cf. A296955. (This follows from the fact that if g(z) = Sum_{n >= 1} a(n)*z^n and f(z) = Sum_{n >= 1} a(n)*z^(N*n)/(1 - z^n) then f(z) = Sum_{k >= N} g(z^k), taking a(n) = n and N = 2.) - Peter Bala, Jan 13 2021
Faster converging g.f.: Sum_{n >= 1} q^(n*(n+1))*(n*q^(3*n+2) - (n + 1)*q^(2*n+1) - (n - 1)*q^(n+1) + n)/((1 - q^n)*(1 - q^(n+1))^2). (In equation 1 in Arndt, after combining the two n = 0 summands to get -t/(1 - t), apply the operator t*d/dt to the resulting equation and then set t = q and x = 1.) - Peter Bala, Jan 22 2021
a(n) = Sum_{d|n} d * (1 - [n = d]), where [ ] is the Iverson bracket. - Wesley Ivan Hurt, Jan 28 2021
a(n) = Sum_{i=1..n} ((n-1) mod i) - (n mod i). [See also A176079.] - José de Jesús Camacho Medina, Feb 23 2021

A262626 Visible parts of the perspective view of the stepped pyramid whose structure essentially arises after the 90-degree-zig-zag folding of the isosceles triangle A237593.

Original entry on oeis.org

1, 1, 1, 3, 2, 2, 2, 2, 2, 1, 1, 2, 7, 3, 1, 1, 3, 3, 3, 3, 2, 2, 3, 12, 4, 1, 1, 1, 1, 4, 4, 4, 4, 2, 1, 1, 2, 4, 15, 5, 2, 1, 1, 2, 5, 5, 3, 5, 5, 2, 2, 2, 2, 5, 9, 9, 6, 2, 1, 1, 1, 1, 2, 6, 6, 6, 6, 3, 1, 1, 1, 1, 3, 6, 28, 7, 2, 2, 1, 1, 2, 2, 7, 7, 7, 7, 3, 2, 1, 1, 2, 3, 7, 12, 12, 8, 3, 1, 2, 2, 1, 3, 8, 8, 8, 8, 8, 3, 2, 1, 1
Offset: 1

Views

Author

Omar E. Pol, Sep 26 2015

Keywords

Comments

Also the rows of both triangles A237270 and A237593 interleaved.
Also, irregular triangle read by rows in which T(n,k) is the area of the k-th region (from left to right in ascending diagonal) of the n-th symmetric set of regions (from the top to the bottom in descending diagonal) in the two-dimensional diagram of the perspective view of the infinite stepped pyramid described in A245092 (see the diagram in the Links section).
The diagram of the symmetric representation of sigma is also the top view of the pyramid, see Links section. For more information about the diagram see also A237593 and A237270.
The number of cubes at the n-th level is also A024916(n), the sum of all divisors of all positive integers <= n.
Note that this pyramid is also a quarter of the pyramid described in A244050. Both pyramids have infinitely many levels.
Odd-indexed rows are also the rows of the irregular triangle A237270.
Even-indexed rows are also the rows of the triangle A237593.
Lengths of the odd-indexed rows are in A237271.
Lengths of the even-indexed rows give 2*A003056.
Row sums of the odd-indexed rows gives A000203, the sum of divisors function.
Row sums of the even-indexed rows give the positive even numbers (see A005843).
Row sums give A245092.
From the front view of the stepped pyramid emerges a geometric pattern which is related to A001227, the number of odd divisors of the positive integers.
The connection with the odd divisors of the positive integers is as follows: A261697 --> A261699 --> A237048 --> A235791 --> A237591 --> A237593 --> A237270 --> this sequence.

Examples

			Irregular triangle begins:
  1;
  1, 1;
  3;
  2, 2;
  2, 2;
  2, 1, 1, 2;
  7;
  3, 1, 1, 3;
  3, 3;
  3, 2, 2, 3;
  12;
  4, 1, 1, 1, 1, 4;
  4, 4;
  4, 2, 1, 1, 2, 4;
  15;
  5, 2, 1, 1, 2, 5;
  5, 3, 5;
  5, 2, 2, 2, 2, 5;
  9, 9;
  6, 2, 1, 1, 1, 1, 2, 6;
  6, 6;
  6, 3, 1, 1, 1, 1, 3, 6;
  28;
  7, 2, 2, 1, 1, 2, 2, 7;
  7, 7;
  7, 3, 2, 1, 1, 2, 3, 7;
  12, 12;
  8, 3, 1, 2, 2, 1, 3, 8;
  8, 8, 8;
  8, 3, 2, 1, 1, 1, 1, 2, 3, 8;
  31;
  9, 3, 2, 1, 1, 1, 1, 2, 3, 9;
  ...
Illustration of the odd-indexed rows of triangle as the diagram of the symmetric representation of sigma which is also the top view of the stepped pyramid:
.
   n  A000203    A237270    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
   1     1   =      1      |_| | | | | | | | | | | | | | | |
   2     3   =      3      |_ _|_| | | | | | | | | | | | | |
   3     4   =    2 + 2    |_ _|  _|_| | | | | | | | | | | |
   4     7   =      7      |_ _ _|    _|_| | | | | | | | | |
   5     6   =    3 + 3    |_ _ _|  _|  _ _|_| | | | | | | |
   6    12   =     12      |_ _ _ _|  _| |  _ _|_| | | | | |
   7     8   =    4 + 4    |_ _ _ _| |_ _|_|    _ _|_| | | |
   8    15   =     15      |_ _ _ _ _|  _|     |  _ _ _|_| |
   9    13   =  5 + 3 + 5  |_ _ _ _ _| |      _|_| |  _ _ _|
  10    18   =    9 + 9    |_ _ _ _ _ _|  _ _|    _| |
  11    12   =    6 + 6    |_ _ _ _ _ _| |  _|  _|  _|
  12    28   =     28      |_ _ _ _ _ _ _| |_ _|  _|
  13    14   =    7 + 7    |_ _ _ _ _ _ _| |  _ _|
  14    24   =   12 + 12   |_ _ _ _ _ _ _ _| |
  15    24   =  8 + 8 + 8  |_ _ _ _ _ _ _ _| |
  16    31   =     31      |_ _ _ _ _ _ _ _ _|
  ...
The above diagram arises from a simpler diagram as shown below.
Illustration of the even-indexed rows of triangle as the diagram of the deployed front view of the corner of the stepped pyramid:
.
.                                 A237593
Level                               _ _
1                                 _|1|1|_
2                               _|2 _|_ 2|_
3                             _|2  |1|1|  2|_
4                           _|3   _|1|1|_   3|_
5                         _|3    |2 _|_ 2|    3|_
6                       _|4     _|1|1|1|1|_     4|_
7                     _|4      |2  |1|1|  2|      4|_
8                   _|5       _|2 _|1|1|_ 2|_       5|_
9                 _|5        |2  |2 _|_ 2|  2|        5|_
10              _|6         _|2  |1|1|1|1|  2|_         6|_
11            _|6          |3   _|1|1|1|1|_   3|          6|_
12          _|7           _|2  |2  |1|1|  2|  2|_           7|_
13        _|7            |3    |2 _|1|1|_ 2|    3|            7|_
14      _|8             _|3   _|1|2 _|_ 2|1|_   3|_             8|_
15    _|8              |3    |2  |1|1|1|1|  2|    3|              8|_
16   |9                |3    |2  |1|1|1|1|  2|    3|                9|
...
The number of horizontal line segments in the n-th level in each side of the diagram equals A001227(n), the number of odd divisors of n.
The number of horizontal line segments in the left side of the diagram plus the number of the horizontal line segment in the right side equals A054844(n).
The total number of vertical line segments in the n-th level of the diagram equals A131507(n).
The diagram represents the first 16 levels of the pyramid.
The diagram of the isosceles triangle and the diagram of the top view of the pyramid shows the connection between the partitions into consecutive parts and the sum of divisors function (see also A286000 and A286001). - _Omar E. Pol_, Aug 28 2018
The connection between the isosceles triangle and the stepped pyramid is due to the fact that this object can also be interpreted as a pop-up card. - _Omar E. Pol_, Nov 09 2022
		

Crossrefs

Famous sequences that are visible in the stepped pyramid:
Cf. A000040 (prime numbers)......., for the characteristic shape see A346871.
Cf. A000079 (powers of 2)........., for the characteristic shape see A346872.
Cf. A000203 (sum of divisors)....., total area of the terraces in the n-th level.
Cf. A000217 (triangular numbers).., for the characteristic shape see A346873.
Cf. A000225 (Mersenne numbers)...., for a visualization see A346874.
Cf. A000384 (hexagonal numbers)..., for the characteristic shape see A346875.
Cf. A000396 (perfect numbers)....., for the characteristic shape see A346876.
Cf. A000668 (Mersenne primes)....., for a visualization see A346876.
Cf. A001097 (twin primes)........., for a visualization see A346871.
Cf. A001227 (# of odd divisors)..., number of subparts in the n-th level.
Cf. A002378 (oblong numbers)......, for a visualization see A346873.
Cf. A008586 (multiples of 4)......, perimeters of the successive levels.
Cf. A008588 (multiples of 6)......, for the characteristic shape see A224613.
Cf. A013661 (zeta(2))............., (area of the horizontal faces)/(n^2), n -> oo.
Cf. A014105 (second hexagonals)..., for the characteristic shape see A346864.
Cf. A067742 (# of middle divisors), # cells in the main diagonal in n-th level.
Apart from zeta(2) other constants that are related to the stepped pyramid are A072691, A353908, A354238.

A039653 a(0) = 0; for n > 0, a(n) = sigma(n)-1.

Original entry on oeis.org

0, 0, 2, 3, 6, 5, 11, 7, 14, 12, 17, 11, 27, 13, 23, 23, 30, 17, 38, 19, 41, 31, 35, 23, 59, 30, 41, 39, 55, 29, 71, 31, 62, 47, 53, 47, 90, 37, 59, 55, 89, 41, 95, 43, 83, 77, 71, 47, 123, 56, 92, 71, 97, 53, 119, 71, 119, 79, 89, 59, 167, 61, 95, 103, 126, 83, 143, 67, 125, 95
Offset: 0

Views

Author

Keywords

Comments

Call an integer k between 1 and n a "semi-divisor" of n if n leaves a remainder of 1 when divided by k, i.e., n == 1 (mod k). a(n) gives the sum of the semi-divisors of n+1. - Joseph L. Pe, Sep 11 2002
a(n) is also the sum of the strong divisors of n, for n >= 1. - Omar E. Pol, May 01 2015

Crossrefs

Programs

Formula

a(p) = p for p prime.
G.f.: -2*x^2/(Q(0) - 2*x^2 + 2*x), where Q(k) = (2*x^(k+2) - x - 1)*k - 1 - 2*x + 3*x^(k+2) - x*(k+3)*(k+1)*(1-x^(k+2))^2/Q(k+1); (continued fraction). - Sergei N. Gladkovskii, May 16 2013
Let A(x) be the g.f. of A039653 and B(x) the g.f. of A155085. Then B(x) = 1/(1-x) + 1/(1-x)^2 + A(x)/x. - Sergei N. Gladkovskii, May 16 2013

A224880 a(n) = 2n + sum of divisors of n.

Original entry on oeis.org

3, 7, 10, 15, 16, 24, 22, 31, 31, 38, 34, 52, 40, 52, 54, 63, 52, 75, 58, 82, 74, 80, 70, 108, 81, 94, 94, 112, 88, 132, 94, 127, 114, 122, 118, 163, 112, 136, 134, 170, 124, 180, 130, 172, 168, 164, 142, 220, 155, 193, 174, 202, 160, 228, 182, 232, 194, 206
Offset: 1

Views

Author

Hans Havermann, Jul 23 2013

Keywords

Comments

This sequence is A033880 for the negative integers, thus making explicit the mapping noted in A075701.
From Omar E. Pol, Jun 21 2018: (Start)
a(n) is also the total area of the terraces and the vertical sides that are visible in the perspective view at the n-th level (starting from the top) of the stepped pyramid described in A245092.
Partial sums give A299692. (End)

Examples

			a(6) = 2*6 + (1+2+3+6) = 24.
		

Crossrefs

Programs

  • Maple
    with(numtheory); seq(2*k+sigma(k),k=1..100); # Wesley Ivan Hurt, Jul 24 2013
  • Mathematica
    Table[2*n+DivisorSigma[1,n],{n,64}]
  • PARI
    vector(80, n, 2*n + sigma(n)) \\ Michel Marcus, Aug 19 2015

Formula

a(n) = A155085(n) + n.
a(n) = 2n + sigma(n) = A005843(n) + A000203(n) = A033879(n) + 2*A000203(n) = A033880(n) + 2*A005843(n) = 2*A155085(n) - A000203(n) = 2*A000203(n) - A033880(n). - Wesley Ivan Hurt, Jul 24 2013
G.f.: 2*x/(1 - x)^2 + Sum_{k>=1} x^k/(1 - x^k)^2. - Ilya Gutkovskiy, Mar 17 2017
a(n) = A001065(n) + A008585(n). - Omar E. Pol, Mar 06 2018
Sum_{k=1..n} a(k) = c * n^2 + O(n*log(n)), where c = zeta(2)/2 + 1 = A072691 + 1 = 1.822467... . - Amiram Eldar, Mar 17 2024

A349751 Odd numbers k such that sigma(k) == -k (mod 3), where sigma is the sum of divisors function.

Original entry on oeis.org

7, 13, 15, 19, 31, 33, 37, 43, 45, 51, 61, 67, 69, 73, 79, 87, 97, 99, 103, 105, 109, 123, 127, 135, 139, 141, 147, 151, 153, 157, 159, 163, 165, 175, 177, 181, 193, 195, 199, 207, 211, 213, 223, 229, 231, 241, 249, 255, 261, 267, 271, 277, 283, 285, 297, 303, 307, 313, 315, 321, 325, 331, 337, 339, 345, 349, 357
Offset: 1

Views

Author

Antti Karttunen, Nov 30 2021

Keywords

Comments

Odd numbers k for which A155085(k) is a multiple of 3.

Examples

			7 is present as 7 mod 3 = +1, while sigma(7) = 8, and 8 mod 3 = 2, i.e., -1.
45 is present as 45 mod 3 = 0, while sigma(45) = 78, and 78 mod 3 = 0 as well.
		

Crossrefs

Cf. A349752 (intersection with A349749).

Programs

  • Mathematica
    Select[Range[1, 360, 2], Divisible[DivisorSigma[1, #] + #, 3] &] (* Amiram Eldar, Dec 01 2021 *)
  • PARI
    isA349751(n) = ((n%2)&&0==(sigma(n)+n)%3);

A114069 sigma(n) + n is a square.

Original entry on oeis.org

33, 90, 385, 420, 649, 900, 1441, 1464, 1480, 1729, 2025, 2616, 3168, 3588, 3984, 4005, 4873, 5049, 5185, 6225, 7153, 7585, 8740, 9060, 10285, 11080, 12280, 12609, 13914, 14809, 15136, 16065, 16345, 17017, 17353, 17809, 18073, 18625, 19098
Offset: 1

Views

Author

Giovanni Resta, Feb 13 2006

Keywords

Examples

			sigma(33) + 33 = 81 = 9^2.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[20000],IntegerQ[Sqrt[DivisorSigma[1,#]+#]]&] (* Harvey P. Dale, May 09 2011 *)
  • PARI
    isok(n) = issquare (n+sigma(n)); \\ Michel Marcus, Aug 13 2019

A382929 Smallest number k such that k + n + sigma(n) is a perfect number.

Original entry on oeis.org

4, 1, 21, 17, 17, 10, 13, 5, 6, 0, 5, 456, 1, 458, 457, 449, 461, 439, 457, 434, 443, 438, 449, 412, 440, 428, 429, 412, 437, 394, 433, 401, 415, 408, 413, 369, 421, 398, 401, 366, 413, 358, 409, 368, 373, 378, 401, 324, 390, 353, 373, 346, 389, 322, 369, 320, 359, 348, 377, 268
Offset: 1

Views

Author

Leo Hennig, Apr 09 2025

Keywords

Examples

			a(10) = 0, because 10 + sigma(10) = 28, which is perfect.
a(12) = 456, because 456 + 12 + sigma(12) = 496, which is perfect.
As 496 is the smallest perfect number at least as large as sigma(60) + 60 = 168 + 60 = 228 we have a(60) = 496 - 228 = 268. - _David A. Corneth_, Apr 10 2025
		

Crossrefs

Programs

  • Mathematica
    Do[k=0;s=DivisorSigma[1,n];While[DivisorSigma[1,s+n+k]!=2*(s+n+k),k++];a[n]=k,{n,60}];Array[a,60] (* James C. McMahon, Apr 10 2025 *)
  • PARI
    a(n) = my(k=0); while (sigma(k+n+sigma(n)) != 2*(k+n+sigma(n)), k++); k; \\ Michel Marcus, Apr 09 2025
    
  • PARI
    a(n) = {my(s = sigma(n) + n);
        forprime(p = 2, oo,
            my(c = 2^p-1);
            if(isprime(c) && binomial(c+1, 2) >= s,
                return(binomial(c+1, 2) - s)))
    } \\ David A. Corneth, Apr 10 2025
    
  • PARI
    a(n) = my(v = [6, 28, 496, 8128, 33550336, 8589869056], x=n+sigma(n), k=0); for (i=1, #v-1, if ((x > v[i]) && (x <= v[i+1]), k = i; break)); v[k+1] - x; \\ Michel Marcus, Apr 11 2025

A074886 Numbers n such that sigma(sigma(n) - n) = phi(sigma(n) + n).

Original entry on oeis.org

14, 110, 274, 435, 1298, 4608, 4646, 5384, 9214, 10154, 10778, 11912, 13035, 13844, 15026, 18698, 21346, 22958, 25642, 26846, 27466, 32078, 34546, 41164, 49570, 77374, 80438, 85875
Offset: 1

Views

Author

Joseph L. Pe, Sep 13 2002

Keywords

Examples

			sigma(sigma(110)-110) = sigma(216-110) = 162; phi(sigma(110)+110) = phi(326) = 162, so 110 is a term of the sequence.
		

Crossrefs

Programs

  • Mathematica
    r = {}; Do[d = DivisorSigma[1, n]; If[DivisorSigma[1, d - n] == EulerPhi[d + n], r = Append[r, n]], {n, 1, 10^5}]; r

A114070 sigma(n) + n is a cube.

Original entry on oeis.org

13, 76, 280, 4258, 4719, 4887, 12207, 13106, 41823, 42804, 51671, 54261, 56283, 65512, 77671, 95139, 98219, 135724, 147440, 149176, 177911, 220546, 239599, 279145, 285347, 285957, 299432, 308503, 312137, 335106, 350739, 525429, 611123, 634600, 663377, 700064
Offset: 1

Views

Author

Giovanni Resta, Feb 13 2006

Keywords

Examples

			sigma(13) + 13 = 27 = 3^3.
		

Crossrefs

Cf. A155085.

Programs

  • Mathematica
    Select[Range[701100],IntegerQ[Surd[DivisorSigma[1,#]+#,3]]&] (* Harvey P. Dale, Oct 22 2023 *)
  • PARI
    isok(n) = ispower(sigma(n) + n, 3); \\ Michel Marcus, Jan 22 2014

Extensions

More terms from Michel Marcus, Jan 22 2014
Showing 1-10 of 12 results. Next