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

A268335 Exponentially odd numbers.

Original entry on oeis.org

1, 2, 3, 5, 6, 7, 8, 10, 11, 13, 14, 15, 17, 19, 21, 22, 23, 24, 26, 27, 29, 30, 31, 32, 33, 34, 35, 37, 38, 39, 40, 41, 42, 43, 46, 47, 51, 53, 54, 55, 56, 57, 58, 59, 61, 62, 65, 66, 67, 69, 70, 71, 73, 74, 77, 78, 79, 82, 83, 85, 86, 87, 88, 89, 91, 93, 94, 95, 96, 97
Offset: 1

Views

Author

Vladimir Shevelev, Feb 01 2016

Keywords

Comments

The sequence is formed by 1 and the numbers whose prime power factorization contains only odd exponents.
The density of the sequence is the constant given by A065463.
Except for the first term the same as A002035. - R. J. Mathar, Feb 07 2016
Also numbers k all of whose divisors are bi-unitary divisors (i.e., A286324(k) = A000005(k)). - Amiram Eldar, Dec 19 2018
The term "exponentially odd integers" was apparently coined by Cohen (1960). These numbers were also called "unitarily 2-free", or "2-skew", by Cohen (1961). - Amiram Eldar, Jan 22 2024

Crossrefs

Programs

  • Mathematica
    Select[Range@ 100, AllTrue[Last /@ FactorInteger@ #, OddQ] &] (* Version 10, or *)
    Select[Range@ 100, Times @@ Boole[OddQ /@ Last /@ FactorInteger@ #] == 1 &] (* Michael De Vlieger, Feb 02 2016 *)
  • PARI
    isok(n)=my(f = factor(n)); for (k=1, #f~, if (!(f[k,2] % 2), return (0))); 1; \\ Michel Marcus, Feb 02 2016
    
  • Python
    from itertools import count, islice
    from sympy import factorint
    def A268335_gen(startvalue=1): # generator of terms >= startvalue
        return filter(lambda n:all(e&1 for e in factorint(n).values()),count(max(startvalue,1)))
    A268335_list = list(islice(A268335_gen(),20)) # Chai Wah Wu, Jun 22 2023

Formula

Sum_{a(n)<=x} 1 = C*x + O(sqrt(x)*log x*e^(c*sqrt(log x)/(log(log x))), where c = 4*sqrt(2.4/log 2) = 7.44308... and C = Product_{prime p} (1 - 1/p*(p + 1)) = 0.7044422009991... (A065463).
Sum_{n>=1} 1/a(n)^s = zeta(2*s) * Product_{p prime} (1 + 1/p^s - 1/p^(2*s)), s>1. - Amiram Eldar, Sep 26 2023

A262675 Exponentially evil numbers.

Original entry on oeis.org

1, 8, 27, 32, 64, 125, 216, 243, 343, 512, 729, 864, 1000, 1024, 1331, 1728, 1944, 2197, 2744, 3125, 3375, 4000, 4096, 4913, 5832, 6859, 7776, 8000, 9261, 10648, 10976, 12167, 13824, 15552, 15625, 16807, 17576, 19683, 21952, 23328, 24389, 25000, 27000, 27648, 29791
Offset: 1

Views

Author

Vladimir Shevelev, Sep 27 2015

Keywords

Comments

Or the numbers whose prime power factorization contains primes only in evil exponents (A001969): 0, 3, 5, 6, 9, 10, 12, ...
If n is in the sequence, then n^2 is also in the sequence.
A268385 maps each term of this sequence to a unique nonzero square (A000290), and vice versa. - Antti Karttunen, May 26 2016

Examples

			864 = 2^5*3^3; since 5 and 3 are evil numbers, 864 is in the sequence.
		

Crossrefs

Subsequence of A036966.
Apart from 1, a subsequence of A270421.
Indices of ones in A270418.
Sequence A270437 sorted into ascending order.

Programs

  • Haskell
    a262675 n = a262675_list !! (n-1)
    a262675_list = filter
       (all (== 1) . map (a010059 . fromIntegral) . a124010_row) [1..]
    -- Reinhard Zumkeller, Oct 25 2015
    
  • Mathematica
    {1}~Join~Select[Range@ 30000, AllTrue[Last /@ FactorInteger[#], EvenQ@ First@ DigitCount[#, 2] &] &] (* Michael De Vlieger, Sep 27 2015, Version 10 *)
    expEvilQ[n_] := n == 1 || AllTrue[FactorInteger[n][[;; , 2]], EvenQ[DigitCount[#, 2, 1]] &]; With[{max = 30000}, Select[Union[Flatten[Table[i^2*j^3, {j, Surd[max, 3]}, {i, Sqrt[max/j^3]}]]], expEvilQ]] (* Amiram Eldar, Dec 01 2023 *)
  • PARI
    isok(n) = {my(f = factor(n)); for (i=1, #f~, if (hammingweight(f[i,2]) % 2, return (0));); return (1);} \\ Michel Marcus, Sep 27 2015
    
  • Perl
    use ntheory ":all"; sub isok { my @f = factor_exp($[0]); return scalar(grep { !(hammingweight($->[1]) % 2) } @f) == @f; } # Dana Jacobsen, Oct 26 2015

Formula

Product_{k=1..A001221(n)} A010059(A124010(n,k)) = 1. - Reinhard Zumkeller, Oct 25 2015
Sum_{n>=1} 1/a(n) = Product_{p prime} (1 + Sum_{k>=2} 1/p^A001969(k)) = Product_{p prime} f(1/p) = 1.2413599378..., where f(x) = (1/(1-x) + Product_{k>=0} (1 - x^(2^k)))/2. - Amiram Eldar, May 18 2023, Dec 01 2023

Extensions

More terms from Michel Marcus, Sep 27 2015

A170802 a(n) = n^10*(n^10 + 1)/2.

Original entry on oeis.org

0, 1, 524800, 1743421725, 549756338176, 47683720703125, 1828079250264576, 39896133290043625, 576460752840294400, 6078832731271856601, 50000000005000000000, 336374997479248716901, 1916879996254696243200
Offset: 0

Views

Author

N. J. A. Sloane, Dec 11 2009

Keywords

Comments

By definition, all terms are triangular numbers. - Harvey P. Dale, Aug 12 2012
Number of unoriented rows of length 20 using up to n colors. For a(0)=0, there are no rows using no colors. For a(1)=1, there is one row using that one color for all positions. For a(2)=524800, there are 2^20=1048576 oriented arrangements of two colors. Of these, 2^10=1024 are achiral. That leaves (1048576-1024)/2=523776 chiral pairs. Adding achiral and chiral, we get 524800. - Robert A. Russell, Nov 13 2018

Crossrefs

Row 20 of A277504.
Cf. A010808 (oriented), A008454 (achiral).
Sequences of the form n^10*(n^m + 1)/2: A170793 (m=1), A170794 (m=2), A170795 (m=3), A170896 (m=4), A170797 (m=5), A170798 (m=6), A170799 (m=7), A170800 (m=8), A170801 (m=9), this sequence (m=10).

Programs

  • GAP
    List([0..30], n -> n^10*(n^10+1)/2); # G. C. Greubel, Nov 15 2018
    
  • Magma
    [n^10*(n^10+1)/2: n in [0..20]]; // Vincenzo Librandi, Aug 27 2011
    
  • Maple
    seq(n^10*(n^10 +1)/2, n=0..20); # G. C. Greubel, Oct 11 2019
  • Mathematica
    n10[n_]:=Module[{c=n^10},(c(c+1))/2];Array[n10,15,0] (* Harvey P. Dale, Jul 17 2012 *)
  • PARI
    vector(30, n, n--; n^10*(n^10+1)/2) \\ G. C. Greubel, Nov 15 2018
    
  • Python
    for n in range(0,20): print(int(n**10*(n**10 + 1)/2), end=', ') # Stefano Spezia, Nov 15 2018
  • Sage
    [n^10*(n^10+1)/2 for n in range(30)] # G. C. Greubel, Nov 15 2018
    

Formula

From Robert A. Russell, Nov 13 2018: (Start)
a(n) = (A010808(n) + A008454(n)) / 2 = (n^20 + n^10) / 2.
G.f.: (Sum_{j=1..20} S2(20,j)*j!*x^j/(1-x)^(j+1) + Sum_{j=1..10} S2(10,j)*j!*x^j/(1-x)^(j+1)) / 2, where S2 is the Stirling subset number A008277.
G.f.: x*Sum_{k=0..19} A145882(20,k) * x^k / (1-x)^21.
E.g.f.: (Sum_{k=1..20} S2(20,k)*x^k + Sum_{k=1..10} S2(10,k)*x^k) * exp(x) / 2, where S2 is the Stirling subset number A008277.
For n>20, a(n) = Sum_{j=1..21} -binomial(j-22,j) * a(n-j). (End)

A036098 Centered cube numbers: a(n) = (n+1)^20 + n^20.

Original entry on oeis.org

1, 1048577, 3487832977, 1102998412177, 96466943268401, 3751525871703601, 83448424737674977, 1232713770904458977, 13310586963663775777, 112157665459056928801, 772749994932560009201, 4506509987380035131377
Offset: 0

Views

Author

Keywords

Comments

Never prime because a(n) = (2n^4 + 4n^3 + 6n^2 + 4n + 1) * (n^16 + 8n^15 + 76n^14 + 392n^13 + 1394n^12 + 3632n^11 + 7112n^10 + 10656n^9 + 12376n^8 + 11220n^7 + 7942n^6 + 4356n^5 + 1819n^4 + 560n^3 + 120n^2 + 16n + 1). Semiprime for n in {1, 13, 14, 54, 162, ...}. - Jonathan Vos Post, Aug 27 2011

Examples

			a(1) = 1^20 + (1+1)^20 = 1048577 = 17 * 61681, which is semiprime.
		

Crossrefs

Programs

A022536 Nexus numbers (n+1)^20 - n^20.

Original entry on oeis.org

1, 1048575, 3485735825, 1096024843375, 94267920012849, 3560791008422351, 76136107857549025, 1073129238309234975, 11004743954450081825, 87842334540943071199, 572749994932560009201, 3161009997514915112975, 15171203782433324316625, 64663291650404002121775
Offset: 0

Views

Author

Keywords

References

  • J. H. Conway and R. K. Guy, The Book of Numbers, Copernicus Press, NY, 1996, p. 54.

Crossrefs

Column k=19 of A047969.

Programs

  • Magma
    [(n+1)^20 - n^20: n in [0..20]]; // G. C. Greubel, Feb 27 2018
  • Maple
    b:=20: a:=n->(n+1)^b-n^b: seq(a(n),n=0..18); # Muniru A Asiru, Feb 28 2018
  • Mathematica
    Table[(n+1)^20 - n^20, {n,0,20}] (* G. C. Greubel, Feb 27 2018 *)
  • PARI
    for(n=0,20, print1((n+1)^20 - n^20, ", ")) \\ G. C. Greubel, Feb 27 2018
    

Formula

a(n) = A010808(n+1) - A010808(n). - Sean A. Irvine, May 18 2019

Extensions

More terms added by G. C. Greubel, Feb 27 2018
Showing 1-5 of 5 results.