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 42 results. Next

A077099 a(n) = gcd(A051612(n), A065387(n)), where A051612(n) = sigma(n) - phi(n) and A065387(n) = sigma(n) + phi(n).

Original entry on oeis.org

2, 2, 2, 1, 2, 2, 2, 1, 1, 2, 2, 8, 2, 6, 16, 1, 2, 3, 2, 2, 4, 2, 2, 4, 1, 6, 2, 4, 2, 16, 2, 1, 4, 2, 24, 1, 2, 6, 16, 2, 2, 12, 2, 8, 6, 2, 2, 4, 3, 1, 8, 2, 2, 6, 16, 48, 4, 2, 2, 8, 2, 6, 4, 1, 12, 4, 2, 2, 4, 24, 2, 3, 2, 6, 4, 8, 12, 48, 2, 2, 1, 2, 2, 8, 4, 6, 16, 20, 2, 6, 8, 4, 4, 2, 48, 4, 2, 3
Offset: 1

Views

Author

Labos Elemer, Nov 06 2002

Keywords

Comments

If a(n)=1, then n is either square or twice a square.

Crossrefs

Programs

  • Mathematica
    sep[n_]:=Module[{s=DivisorSigma[1,n],e=EulerPhi[n]},GCD[s+e,s-e]]; Array[sep,100] (* Harvey P. Dale, Jun 17 2011 *)
  • PARI
    a(n)=my(f=factor(n),s=sigma(f),p=eulerphi(f)); gcd(2*p,s-p) \\ Charles R Greathouse IV, Jan 02 2014

Extensions

Edited by Dean Hickerson, Nov 07 2002

A077100 a(n) = lcm(A051612(n), A065387(n)), where A051612(n) = sigma(n) - phi(n) and A065387(n) = sigma(n) + phi(n).

Original entry on oeis.org

0, 4, 6, 45, 10, 70, 14, 209, 133, 154, 22, 96, 26, 90, 32, 897, 34, 495, 38, 850, 220, 598, 46, 884, 561, 270, 638, 748, 58, 320, 62, 3713, 476, 1330, 72, 8137, 74, 546, 160, 3922, 82, 756, 86, 832, 918, 2350, 94, 3780, 495, 8249, 520, 4514, 106, 2346, 224
Offset: 1

Views

Author

Labos Elemer, Nov 06 2002

Keywords

Crossrefs

Programs

  • Mathematica
    Table[LCM[#1 - #2, #1 + #2] & @@ {DivisorSigma[1, n], EulerPhi@ n}, {n, 55}] (* Michael De Vlieger, Dec 17 2016 *)
  • PARI
    a(n)=my(f=factor(n),e=eulerphi(f),s=sigma(f)); lcm(s+e,s-e) \\ Charles R Greathouse IV, Nov 27 2013

Formula

If p is prime, then a(p) = 2*p.

Extensions

Edited by Dean Hickerson, Nov 07 2002

A077080 a(n) = phi(sigma(n) + phi(n)) = A000010(A000203(n) + A000010(n)) = A000010(A065387(n)).

Original entry on oeis.org

1, 2, 2, 6, 4, 6, 6, 18, 18, 10, 10, 16, 12, 8, 16, 24, 16, 24, 18, 20, 20, 22, 22, 32, 32, 18, 28, 32, 28, 32, 30, 78, 32, 24, 24, 102, 36, 24, 32, 52, 40, 36, 42, 48, 32, 46, 46, 48, 60, 112, 48, 60, 52, 44, 48, 48, 56, 58, 58, 88, 60, 36, 48, 104, 40, 80, 66, 78, 48, 48, 70
Offset: 1

Views

Author

Labos Elemer, Oct 28 2002

Keywords

Crossrefs

Programs

A229264 Primes in A065387 in the order of their appearance.

Original entry on oeis.org

2, 19, 19, 79, 103, 113, 257, 523, 509, 1151, 1279, 1193, 1579, 2273, 3061, 2389, 2693, 2843, 5003, 4831, 5119, 7411, 5693, 5623, 8623, 6323, 10139, 8933, 18401, 14957, 20411, 20479, 21191, 20123, 29683, 28211, 36833, 55021, 57203, 68743, 48761, 66533, 62423
Offset: 1

Views

Author

Paolo P. Lava, Sep 18 2013

Keywords

Examples

			Third term of A038344 is 9 and sigma(9) + phi(9) = 13 + 6 = 19 is prime.
		

Crossrefs

Programs

  • Maple
    with(numtheory); P:=proc(q) local a, n; for n from 1 to q do a:=sigma(n)+phi(n);
    if isprime(a) then print(a); fi; od; end: P(10^6);
  • Mathematica
    Select[Table[DivisorSigma[1,n]+EulerPhi[n],{n,30000}],PrimeQ] (* Harvey P. Dale, Apr 30 2018 *)
  • PARI
    lista(kmax) = {my(f, s); for(k = 1, kmax, f = factor(k); s= sigma(f) + eulerphi(f); if(isprime(s), print1(s, ", ")));} \\ Amiram Eldar, Nov 19 2024

Extensions

Name corrected by Amiram Eldar, Nov 19 2024

A077101 a(n) = A051612(n)*A065387(n) = sigma(n)^2-phi(n)^2, where A051612(n) = sigma(n) - phi(n) and A065387(n) = sigma(n) + phi(n).

Original entry on oeis.org

0, 8, 12, 45, 20, 140, 28, 209, 133, 308, 44, 768, 52, 540, 512, 897, 68, 1485, 76, 1700, 880, 1196, 92, 3536, 561, 1620, 1276, 2992, 116, 5120, 124, 3713, 1904, 2660, 1728, 8137, 148, 3276, 2560, 7844, 164, 9072, 172, 6656, 5508, 4700, 188, 15120, 1485
Offset: 1

Views

Author

Labos Elemer, Nov 06 2002

Keywords

Comments

If n is prime, then a(n) = 4n.

Crossrefs

Programs

Formula

a(n) = A077099(n) * A077100(n). - Antti Karttunen, May 26 2017
From Amiram Eldar, Dec 04 2023: (Start)
a(n) = A072861(n) - A127473(n).
Sum_{k=1..n} a(k) ~ c * n^3 / 3, where c = 5*zeta(3)/2 - Product_{p prime}(1 - (2*p-1)/p^3) = (5/2)*A002117 - A065464 = 2.576892... . (End)

Extensions

Edited by Dean Hickerson, Nov 07 2002

A292768 Partial sums of A065387.

Original entry on oeis.org

2, 6, 12, 21, 31, 45, 59, 78, 97, 119, 141, 173, 199, 229, 261, 300, 334, 379, 417, 467, 511, 557, 603, 671, 722, 776, 834, 902, 960, 1040, 1102, 1181, 1249, 1319, 1391, 1494, 1568, 1646, 1726, 1832, 1914, 2022, 2108, 2212, 2314, 2408, 2502, 2642, 2741, 2854, 2958, 3080, 3186, 3324, 3436
Offset: 1

Views

Author

N. J. A. Sloane, Sep 28 2017

Keywords

Crossrefs

Programs

  • Mathematica
    Accumulate @ Table[EulerPhi[n] + DivisorSigma[1, n], {n, 100}] (* Amiram Eldar, Dec 03 2023 *)
  • PARI
    lista(nmax) = {my(f, s = 0); for(n = 1, nmax, f = factor(n); s += (sigma(f) + eulerphi(f)); print1(s, ", "));} \\ Amiram Eldar, Dec 03 2023

Formula

G.f.: (1/(1 - x))*Sum_{k>=1} (mu(k) + 1)*x^k/(1 - x^k)^2. - Ilya Gutkovskiy, Sep 28 2017
a(n) = (3/(Pi^2) + Pi^2/12) * n^2 + O(n*log(n)). - Amiram Eldar, Dec 03 2023

A001414 Integer log of n: sum of primes dividing n (with repetition). Also called sopfr(n).

Original entry on oeis.org

0, 2, 3, 4, 5, 5, 7, 6, 6, 7, 11, 7, 13, 9, 8, 8, 17, 8, 19, 9, 10, 13, 23, 9, 10, 15, 9, 11, 29, 10, 31, 10, 14, 19, 12, 10, 37, 21, 16, 11, 41, 12, 43, 15, 11, 25, 47, 11, 14, 12, 20, 17, 53, 11, 16, 13, 22, 31, 59, 12, 61, 33, 13, 12, 18, 16, 67, 21, 26, 14, 71, 12, 73, 39, 13, 23, 18, 18
Offset: 1

Views

Author

Keywords

Comments

MacMahon calls this the potency of n.
Downgrades the operators in a prime decomposition. E.g., 40 factors as 2^3 * 5 and sopfr(40) = 2 * 3 + 5 = 11.
Consider all ways of writing n as a product of zero, one, or more factors; sequence gives smallest sum of terms. - Amarnath Murthy, Jul 07 2001
a(n) <= n for all n, and a(n) = n iff n is 4 or a prime.
Look at the graph of this sequence. At the lower edge of the logarithmic scatterplot there is a set of fuzzy but unmistakable diagonal fringes, sloping toward the southeast. Their spacing gradually increases, and their slopes gradually decrease; they are more distinct toward the lower edge of the range. Is any explanation known? - Allan C. Wechsler, Oct 11 2015
For n >= 2, the glb and lub are: 3 * log(n) / log(3) <= a(n) <= n, where the lub occurs when n = 3^k, k >= 1. (Jakimczuk 2012) - Daniel Forgues, Oct 12 2015
Except for the initial term, row sums of A027746. - M. F. Hasler, Feb 08 2016
Atanassov proves that a(n) <= A065387(n) - n. - Charles R Greathouse IV, Dec 06 2016
From Robert G. Wilson v, Aug 15 2022: (Start)
Differs from A337310 beginning with n at 64, 192, 256, 320, 448, 512, ..., .
The number of terms which equal k is A000607(k).
The first occurrence of k>1 is A056240(k).
The last occurrence of k>1 is A000792(k).
The Amarnath Murthy comment of Jul 07 2001 is a result of the fundamental theorem of arithmetic.
(End)

Examples

			a(24) = 2+2+2+3 = 9.
a(30) = 10: 30 can be written as 30, 15*2, 10*3, 6*5, 5*3*2. The corresponding sums are 30, 17, 13, 11, 10. Among these 10 is the least.
		

References

  • K. Atanassov, New integer functions, related to ψ and σ functions. IV., Bull. Number Theory Related Topics 12 (1988), pp. 31-35.
  • Amarnath Murthy, Generalization of Partition function and introducing Smarandache Factor Partition, Smarandache Notions Journal, Vol. 11, 1-2-3, Spring-2000.
  • Amarnath Murthy and Charles Ashbacher, Generalized Partitions and Some New Ideas on Number Theory and Smarandache Sequences, Hexis, Phoenix; USA 2005. See Section 1.4.
  • Joe Roberts, Lure of the Integers, Math. Assoc. America, 1992, p. 89.
  • 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).

Crossrefs

A000607(n) gives the number of values of k for which A001414(k) = n.
Cf. A036349 (indices of even terms), A356163 (their char. function), A335657 (indices of odd terms), A289142 (of multiples of 3), A373371 (their char. function).
For sum of squares of prime factors see A067666, for cubes see A224787.
Other completely additive sequences with primes p mapped to a function of p include: A001222 (with a(p)=1), A056239 (with a(p)=primepi(p)), A059975 (with a(p)=p-1), A064097 (with a(p)=1+a(p-1)), A113177 (with a(p)=Fib(p)), A276085 (with a(p)=p#/p), A341885 (with a(p)=p*(p+1)/2), A373149 (with a(p)=prevprime(p)), A373158 (with a(p)=p#).
For other completely additive sequences see the cross-references in A104244.

Programs

  • Haskell
    a001414 1 = 0
    a001414 n = sum $ a027746_row n
    -- Reinhard Zumkeller, Feb 27 2012, Nov 20 2011
    
  • Magma
    [n eq 1 select 0 else (&+[j[1]*j[2]: j in Factorization(n)]): n in [1..100]]; // G. C. Greubel, Jan 10 2019
  • Maple
    A001414 := proc(n) add( op(1,i)*op(2,i),i=ifactors(n)[2]) ; end proc:
    seq(A001414(n), n=1..100); # Peter Luschny, Jan 17 2011
  • Mathematica
    a[n_] := Plus @@ Times @@@ FactorInteger@ n; a[1] = 0; Array[a, 78] (* Ray Chandler, Nov 12 2005 *)
  • PARI
    a(n)=local(f); if(n<1,0,f=factor(n); sum(k=1,matsize(f)[1],f[k,1]*f[k,2]))
    
  • PARI
    A001414(n) = (n=factor(n))[,1]~*n[,2] \\ M. F. Hasler, Feb 07 2009
    
  • Python
    from sympy import factorint
    def A001414(n):
        return sum(p*e for p,e in factorint(n).items()) # Chai Wah Wu, Jan 08 2016
    
  • Sage
    [sum(factor(n)[j][0]*factor(n)[j][1] for j in range(0,len(factor(n)))) for n in range(1,79)] # Giuseppe Coppoletta, Jan 19 2015
    

Formula

If n = Product p_j^k_j then a(n) = Sum p_j * k_j.
Dirichlet g.f. f(s)*zeta(s), where f(s) = Sum_{p prime} p/(p^s-1) = Sum_{k>0} primezeta(k*s-1) is the Dirichlet g.f. for A120007. Totally additive with a(p^e) = p*e. - Franklin T. Adams-Watters, Jun 02 2006
For n > 1: a(n) = Sum_{k=1..A001222(n)} A027746(n,k). - Reinhard Zumkeller, Aug 27 2011
Sum_{n>=1} (-1)^a(n)/n^s = ((2^s + 1)/(2^s - 1))*zeta(2*s)/zeta(s), if Re(s)>1 and 0 if s=1 (Alladi and Erdős, 1977). - Amiram Eldar, Nov 02 2020
a(n) >= k*log(n), where k = 3/log(3). This bound is sharp. - Charles R Greathouse IV, Jul 28 2025

A008578 Prime numbers at the beginning of the 20th century (today 1 is no longer regarded as a prime).

Original entry on oeis.org

1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271
Offset: 1

Views

Author

Keywords

Comments

1 together with the primes; also called the noncomposite numbers.
Also largest sequence of nonnegative integers with the property that the product of 2 or more elements with different indices is never a square. - Ulrich Schimke (ulrschimke(AT)aol.com), Dec 12 2001 [Comment corrected by Farideh Firoozbakht, Aug 03 2014]
Numbers k whose largest divisor <= sqrt(k) equals 1. (See also A161344, A161345, A161424.) - Omar E. Pol, Jul 05 2009
Numbers k such that d(k) <= 2. - Juri-Stepan Gerasimov, Oct 17 2009
Also first column of array in A163280. Also first row of array in A163990. - Omar E. Pol, Oct 24 2009
Possible values of A136548(m) in increasing order, where A136548(m) = the largest numbers h such that A000203(h) <= k (k = 1,2,3,...), where A000203(h) = sum of divisors of h. - Jaroslav Krizek, Mar 01 2010
Where record values of A022404 occur: A086332(n)=A022404(a(n)). - Reinhard Zumkeller, Jun 21 2010
Positive integers that have no divisors other than 1 and itself (the old definition of prime numbers). - Omar E. Pol, Aug 10 2012
Conjecture: the sequence contains exactly those k such that sigma(k) > k*BigOmega(k). - Irina Gerasimova, Jun 08 2013
Note on the Gerasimova conjecture: all terms in the sequence obviously satisfy the inequality, because sigma(p) = 1+p and BigOmega(p) = 1 for primes p, so 1+p > p*1. For composites, the (opposite) inequality is heuristically correct at least up to k <= 4400000. The general proof requires to show that BigOmega(k) is an upper limit of the abundancy sigma(k)/k for composite k. This proof is easy for semiprimes k=p1*p2 in general, where sigma(k)=1+p1+p2+p1*p2 and BigOmega(k)=2 and p1, p2 <= 2. - R. J. Mathar, Jun 12 2013
Numbers k such that phi(k) + sigma(k) = 2k. - Farideh Firoozbakht, Aug 03 2014
isA008578(n) <=> k is prime to n for all k in {1,2,...,n-1}. - Peter Luschny, Jun 05 2017
In 1751 Leonhard Euler wrote: "Having so established this sign S to indicate the sum of the divisors of the number in front of which it is placed, it is clear that, if p indicates a prime number, the value of Sp will be 1 + p, except for the case where p = 1, because then we have S1 = 1, and not S1 = 1 + 1. From this we see that we must exclude unity from the sequence of prime numbers, so that unity, being the start of whole numbers, it is neither prime nor composite." - Omar E. Pol, Oct 12 2021
a(1) = 1; for n >= 2, a(n) is the least unused number that is coprime to all previous terms. - Jianing Song, May 28 2022
A number p is preprime if p = a*b ==> a = 1 or b = 1. This sequence lists the preprimes in the commutative monoid IN \ {0}. - Peter Luschny, Aug 26 2022

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. 870.
  • Albert H. Beiler, Recreations in the theory of numbers, New York, Dover, (2nd ed.) 1966. See Table 84 at pp. 214-217.
  • G. Chrystal, Algebra: An Elementary Textbook. Chelsea Publishing Company, 7th edition, (1964), chap. III.7, p. 38.
  • G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers. 3rd ed., Oxford Univ. Press, 1954, p. 11.
  • H. D. Huskey, Derrick Henry Lehmer [1905-1991]. IEEE Ann. Hist. Comput. 17 (1995), no. 2, 64-68. Math. Rev. 96b:01035
  • D. H. Lehmer, The sieve problem for all-purpose computers. Math. Tables and Other Aids to Computation, Math. Tables and Other Aids to Computation, 7, (1953). 6-14. Math. Rev. 14:691e
  • D. N. Lehmer, "List of Prime Numbers from 1 to 10,006,721", Carnegie Institute, Washington, D.C. 1909.
  • R. F. Lukes, C. D. Patterson and H. C. Williams, Numerical sieving devices: their history and some applications. Nieuw Arch. Wisk. (4) 13 (1995), no. 1, 113-139. Math. Rev. 96m:11082
  • H. C. Williams and J. O. Shallit, Factoring integers before computers. Mathematics of Computation 1943-1993: a half-century of computational mathematics (Vancouver, BC, 1993), 481-531, Proc. Sympos. Appl. Math., 48, AMS, Providence, RI, 1994. Math. Rev. 95m:11143

Crossrefs

The main entry for this sequence is A000040.
The complement of A002808.
Cf. A000732 (boustrophedon transform).
Cf. A023626 (self-convolution).

Programs

  • GAP
    A008578:=Concatenation([1],Filtered([1..10^5],IsPrime)); # Muniru A Asiru, Sep 07 2017
  • Haskell
    a008578 n = a008578_list !! (n-1)
    a008578_list = 1 : a000040_list
    -- Reinhard Zumkeller, Nov 09 2011
    
  • Magma
    [1] cat [n: n in PrimesUpTo(271)];  // Bruno Berselli, Mar 05 2011
    
  • Maple
    A008578 := n->if n=1 then 1 else ithprime(n-1); fi :
  • Mathematica
    Join[ {1}, Table[ Prime[n], {n, 1, 60} ] ]
    NestList[ NextPrime, 1, 57] (* Robert G. Wilson v, Jul 21 2015 *)
    oldPrimeQ[n_] := AllTrue[Range[n-1], CoprimeQ[#, n]&];
    Select[Range[271], oldPrimeQ] (* Jean-François Alcover, Jun 07 2017, after Peter Luschny *)
  • PARI
    is(n)=isprime(n)||n==1
    
  • Sage
    isA008578 = lambda n: all(gcd(k, n) == 1 for k in (1..n-1))
    print([n for n in (1..271) if isA008578(n)]) # Peter Luschny, Jun 07 2017
    

Formula

a(n) = A000040(n-1).
m is in the sequence iff sigma(m) + phi(m) = A065387(m) = 2m. - Farideh Firoozbakht, Jan 27 2005
a(n) = A158611(n+1) for n >= 1. - Jaroslav Krizek, Jun 19 2009
In the following formulas (based on emails from Jaroslav Krizek and R. J. Mathar), the star denotes a Dirichlet convolution between two sequences, and "This" is A008578.
This = A030014 * A008683. (Dirichlet convolution using offset 1 with A030014)
This = A030013 * A000012. (Dirichlet convolution using offset 1 with A030013)
This = A034773 * A007427. (Dirichlet convolution)
This = A034760 * A023900. (Dirichlet convolution)
This = A034762 * A046692. (Dirichlet convolution)
This * A000012 = A030014. (Dirichlet convolution using offset 1 with A030014)
This * A008683 = A030013. (Dirichlet convolution using offset 1 with A030013)
This * A000005 = A034773. (Dirichlet convolution)
This * A000010 = A034760. (Dirichlet convolution)
This * A000203 = A034762. (Dirichlet convolution)
A002033(a(n))=1. - Juri-Stepan Gerasimov, Sep 27 2009
a(n) = A181363((2*n-1)*2^k), k >= 0. - Reinhard Zumkeller, Oct 16 2010
a(n) = A001747(n)/2. - Omar E. Pol, Jan 30 2012
A060448(a(n)) = 1. - Reinhard Zumkeller, Apr 05 2012
A086971(a(n)) = 0. - Reinhard Zumkeller, Dec 14 2012
Sum_{n>=1} x^a(n) = (Sum_{n>=1} (A002815(n)*x^n))*(1-x)^2. - L. Edson Jeffery, Nov 25 2013

A051709 a(n) = sigma(n) + phi(n) - 2n.

Original entry on oeis.org

0, 0, 0, 1, 0, 2, 0, 3, 1, 2, 0, 8, 0, 2, 2, 7, 0, 9, 0, 10, 2, 2, 0, 20, 1, 2, 4, 12, 0, 20, 0, 15, 2, 2, 2, 31, 0, 2, 2, 26, 0, 24, 0, 16, 12, 2, 0, 44, 1, 13, 2, 18, 0, 30, 2, 32, 2, 2, 0, 64, 0, 2, 14, 31, 2, 32, 0, 22, 2, 28, 0, 75, 0, 2, 14, 24, 2, 36, 0
Offset: 1

Views

Author

Keywords

Comments

Sigma is the sum of divisors (A000203), and phi is the Euler totient function (A000010). - Michael B. Porter, Jul 05 2013
Because sigma and phi are multiplicative functions, it is easy to show that (1) if a(n)=0, then n is prime or 1 and (2) if a(n)=2, then n is the product of two distinct prime numbers. Note that a(n) is the n-th term of the Dirichlet series whose generating function is given below. Using the generating function, it is theoretically possible to compute a(n). Hence a(n)=0 could be used as a primality test and a(n)=2 could be used as a test for membership in P2 (A006881). - T. D. Noe, Aug 01 2002
It appears that a(n) - A002033(n) = zeta(s-1) * (zeta(s) - 2 + 1/zeta(s)) + 1/(zeta(s)-2). - Eric Desbiaux, Jul 04 2013
a(n) = 1 if and only if n = prime(k)^2 (n is in A001248). It seems that a(n) = k has only finitely many solutions for k >= 3. - Jianing Song, Jun 27 2021

Examples

			a(5) = sigma(5) + phi(5) - 2*5 = 6 + 4 - 10 = 0.
		

Crossrefs

Cf. A278373 (range of this sequence), A056996 (numbers not present).
Cf. also A344753, A345001 (analogous sequences).

Programs

  • Mathematica
    Table[DivisorSigma[1,n]+EulerPhi[n]-2n,{n,80}] (* Harvey P. Dale, Apr 08 2015 *)
  • PARI
    a(n)=sigma(n)+eulerphi(n)-2*n \\ Charles R Greathouse IV, Jul 05 2013
    
  • PARI
    A051709(n) = -sumdiv(n,d,(dAntti Karttunen, Mar 02 2018

Formula

Dirichlet g.f.: zeta(s-1) * (zeta(s) - 2 + 1/zeta(s)). - T. D. Noe, Aug 01 2002
From Antti Karttunen, Mar 02 2018: (Start)
a(n) = A001065(n) - A051953(n). [Difference between the sum of proper divisors of n and their Moebius-transform.]
a(n) = -Sum_{d|n, dA008683(n/d)*A001065(d). (End)
Sum_{k=1..n} a(k) = (3/(Pi^2) + Pi^2/12 - 1) * n^2 + O(n*log(n)). - Amiram Eldar, Dec 03 2023

A038344 Numbers k such that phi(k) + sigma(k) is a prime.

Original entry on oeis.org

1, 8, 9, 32, 36, 50, 100, 225, 242, 484, 512, 578, 729, 800, 900, 1089, 1156, 1250, 1936, 2025, 2048, 2304, 2312, 2601, 2916, 3025, 3872, 4418, 6400, 7225, 7744, 8192, 8464, 8836, 9216, 10000, 12800, 14400, 20000, 20736, 21609, 26896, 27556, 31684, 32768, 33856, 34322
Offset: 1

Views

Author

Keywords

Comments

Indices k such that A065387(k) is a prime number. - R. J. Mathar, Aug 26 2009
All terms are squares or twice squares (A028982). - Donovan Johnson, Sep 27 2013

Examples

			a(2) = 8 because phi(8) + sigma(8) = 19.
		

Crossrefs

Programs

  • Magma
    [n: n in [1..40000] | IsPrime(EulerPhi(n)+DivisorSigma(1,n))]; // Vincenzo Librandi, Jul 22 2016
  • Mathematica
    Select[Range[0, 40000], PrimeQ[DivisorSigma[1, #] + EulerPhi[#]] &] (* Vincenzo Librandi, Jul 22 2016 *)
  • PARI
    isok(n) = isprime(eulerphi(n) + sigma(n)); \\ Michel Marcus, Sep 27 2013
    
  • PARI
    v=vector(1000); c=0; for(j=1, 12105, m=j^2; if(isprime(eulerphi(m)+sigma(m)), c++; v[c]=m)); for(j=1, 8559, m=2*j^2; if(isprime(eulerphi(m)+sigma(m)), c++; v[c]=m)); v=vecsort(v); for(n=1, 1000, write("b038344.txt", n " " v[n])) \\ Donovan Johnson, Sep 27 2013
    

Formula

{k: A000203(k) + A000010(k) in A000040}. - R. J. Mathar, Aug 26 2009

Extensions

More terms from Olivier Gérard
Showing 1-10 of 42 results. Next