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.

A141197 a(n) = the number of divisors of n that are each one less than a power of a prime.

Original entry on oeis.org

1, 2, 2, 3, 1, 4, 2, 4, 2, 3, 1, 6, 1, 3, 3, 5, 1, 5, 1, 4, 3, 3, 1, 8, 1, 3, 2, 5, 1, 7, 2, 5, 2, 2, 2, 8, 1, 2, 2, 6, 1, 6, 1, 4, 3, 3, 1, 10, 2, 3, 2, 5, 1, 5, 1, 6, 2, 3, 1, 10, 1, 3, 4, 5, 1, 6, 1, 3, 2, 5, 1, 11, 1, 2, 3, 3, 2, 6, 1, 8, 2, 3, 1, 9, 1, 2, 2, 6, 1, 8, 2, 4, 3, 2, 1, 11, 1, 3, 2, 5, 1, 5, 1
Offset: 1

Views

Author

Leroy Quet, Jun 12 2008

Keywords

Comments

A067513(n) <= a(n) <= A000005(n). [From Reinhard Zumkeller, Oct 06 2008]
a(A185208(n)) = 1. - Reinhard Zumkeller, Nov 01 2012

Examples

			The divisors of 9 are 1,3,9. 1 is one less than 2, a power of a prime. 3 is one less than 4, a power of a prime. And 9 is one less than 10, not a power of a prime. There are therefore 2 such divisors that are each one less than a power of a prime. So a(9)=2.
		

Crossrefs

Cf. A141198.
Cf. A049073.

Programs

  • Haskell
    a141197 = sum . map (a010055 . (+ 1)) . a027750_row
    -- Reinhard Zumkeller, Nov 01 2012
  • Mathematica
    a[n_] := Select[Divisors[n], PrimeNu[# + 1] == 1 &] // Length; Table[a[n], {n, 1, 105}] (* Jean-François Alcover, Aug 17 2013 *)
    Table[DivisorSum[n, 1 &, PrimePowerQ[# + 1] &], {n, 103}] (* Michael De Vlieger, Aug 29 2017 *)

Formula

a(n) = sum (A010055(A027750(n,k)): k=1..A000005(n)). - Reinhard Zumkeller, Nov 01 2012

Extensions

Added more terms. - Steven Bi (chenhsi(AT)stanford.edu), Dec 22 2008
Added more terms (Terms 27 - 50). Steven Bi (chenhsi(AT)stanford.edu), Jan 09 2009
Corrected and extended by Ray Chandler, Jun 25 2009

A185208 Numbers having no divisors d > 1 such that d + 1 are prime powers.

Original entry on oeis.org

1, 5, 11, 13, 17, 19, 23, 25, 29, 37, 41, 43, 47, 53, 55, 59, 61, 65, 67, 71, 73, 79, 83, 85, 89, 95, 97, 101, 103, 107, 109, 113, 115, 121, 125, 131, 137, 139, 143, 145, 149, 151, 157, 163, 167, 169, 173, 179, 181, 185, 187, 191, 193, 197, 199, 205, 209
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 01 2012

Keywords

Comments

A141197(a(n)) = A049073(a(n)) = 1.
Contains all primes except for 2 and Mersenne primes A000668. - Jon Perry, Nov 11 2012
A composite number is in the sequence iff all its factors are. - Jon Perry, Nov 11 2012

Crossrefs

Programs

  • Haskell
    a185208 n = a185208_list !! (n-1)
    a185208_list =  filter ((== 1) . a141197) [1..]
  • Mathematica
    Select[Range[210], Select[Divisors[#] // Rest, PrimeNu[# + 1] == 1 &] == {} &] (* Jean-François Alcover, Aug 17 2013 *)
Showing 1-2 of 2 results.