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.

A273671 Permutation of natural numbers: a(n) = A270436(A007305(n+1)) * A270437(A047679(n-1)).

Original entry on oeis.org

1, 8, 2, 27, 54, 24, 3, 64, 250, 375, 192, 108, 135, 40, 4, 125, 686, 96, 1029, 1372, 160, 1715, 500, 320, 875, 16000, 448, 189, 3456, 56, 5, 216, 1458, 3993, 3000, 5324, 10985, 8640, 2916, 3645, 12096, 281216, 9317, 7000, 170368, 5103, 1080, 750, 3087, 352, 3430, 3773, 416, 4116, 1125, 576, 1500, 1625, 704, 270, 297, 72, 6, 343
Offset: 1

Views

Author

Antti Karttunen, May 27 2016

Keywords

Comments

Permutation of natural numbers induced by looking up the position of A007305(n+1)/A047679(n-1) [each fraction in the full Stern-Brocot tree] in the set of positive rationals as ordered by A270418(n)/A270419(n).

Crossrefs

Programs

Formula

a(n) = A270436(A007305(n+1)) * A270437(A047679(n-1)).

A270428 Exponentially odious numbers: 1 together with positive integers n such that all exponents in prime factorization of n are odious numbers (A000069).

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 57, 58, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 70, 71, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84
Offset: 1

Views

Author

Antti Karttunen, May 26 2016

Keywords

Comments

A268385 maps each term of this sequence to a unique term of A268335, and vice versa.
The asymptotic density of this sequence is Product_{p prime} f(1/p) = 0.87686263163054480657..., where f(x) = 1 - x + (1 - (1-x) * Product_{k>=0} (1-x^(2^k)))/2. - Amiram Eldar, Oct 27 2023

Crossrefs

Apart from 1, a subsequence of A270420.
Indices of ones in A270419.
Sequence A270436 sorted into ascending order.
Cf. A010060, A028234, A067029, A355825 (characteristic function).
Cf. also A262675, A268335, A268385.
Differs from its subsequence A138302 for the first time at n=113, where a(113) = 128 = 2^7, a value which does not occur in A138302.

Programs

A270419 Denominator of the rational number obtained when the exponents in prime factorization of n are reinterpreted as alternating binary sums (A065620).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 3, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 2, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2
Offset: 1

Views

Author

Antti Karttunen, May 23 2016

Keywords

Comments

Map n -> A270418(n)/A270419(n) is a bijection from N (1, 2, 3, ...) to the set of positive rationals.

Crossrefs

Cf. A270418 (gives the numerators).
Cf. A270428 (indices of ones).
Cf. also A270420, A270421, A270436, A270437 and permutation pair A273671/A273672.
Differs from A055229 for the first time at n=32, where a(32)=8, while A055229(32)=2.

Programs

  • Mathematica
    s[n_] := s[n] = If[OddQ[n], -2*s[(n - 1)/2] - 1, 2*s[n/2]]; s[0] = 0; f[p_, e_] := p^If[OddQ[DigitCount[e, 2, 1]], 0, s[e]]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Sep 01 2023 *)
  • PARI
    A270419(n)={n=factor(n);n[,2]=apply(A065620,n[,2]);denominator(factorback(n))} \\ M. F. Hasler, Apr 16 2018

Formula

Multiplicative with a(p^e) = p^(-A065620(e)) for evil e, a(p^e)=1 for odious e, or equally, a(p^e) = p^(A010059(e) * -A065620(e)).
a(1) = 1, for n > 1, a(n) = a(A028234(n)) * A020639(n)^( A010059(A067029(n)) * -A065620(A067029(n)) ).
Other identities. For all n >= 1:
a(A270436(n)) = 1, a(A270437(n)) = n.

A270418 Numerator of the rational number obtained when exponents in prime factorization of n are reinterpreted as alternating binary sums (A065620).

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 1, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 3, 25, 26, 1, 28, 29, 30, 31, 1, 33, 34, 35, 36, 37, 38, 39, 5, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 2, 55, 7, 57, 58, 59, 60, 61, 62, 63, 1, 65, 66, 67, 68, 69, 70, 71, 9, 73, 74, 75, 76, 77, 78, 79, 80, 81
Offset: 1

Views

Author

Antti Karttunen, May 23 2016

Keywords

Comments

Map n -> A270418(n)/A270419(n) is a bijection from N (1, 2, 3, ...) to the set of positive rationals.

Crossrefs

Cf. A270419 (gives the denominators).
Cf. A262675 (indices of ones).
Cf. also A270420, A270421, A270436, A270437 and permutation pair A273671/A273672.
Differs from A056192 for the first time at n=32, which here a(32)=1, while A056192(32)=4.

Programs

  • Mathematica
    s[0] = 0; s[n_]:= s[n]= If[OddQ[n], 1 - 2*s[(n-1)/2], 2*s[n/2]]; f[p_, e_] := p^(ThueMorse[e] * s[e]); a[n_] := Times @@ f @@@ FactorInteger[n]; a[1] = 1; Array[a, 100] (* Amiram Eldar, Sep 05 2023 *)
  • PARI
    A270418(n)={n=factor(n);n[,2]=apply(A065620,n[,2]);numerator(factorback(n))} \\ M. F. Hasler, Apr 16 2018

Formula

Multiplicative with a(p^e) = p^A065620(e) for odious e, a(p^e)=1 for evil e, or equally, a(p^e) = p^(A010060(e)*A065620(e)).
a(1) = 1, for n > 1, a(n) = a(A028234(n)) * A020639(n)^( A010060(A067029(n)) * A065620(A067029(n)) ).
Other identities. For all n >= 1:
a(A270436(n)) = n, a(A270437(n)) = 1.

A270437 Multiplicative with a(p^e) = p^(e XOR 2e), where XOR is bitwise-xor.

Original entry on oeis.org

1, 8, 27, 64, 125, 216, 343, 32, 729, 1000, 1331, 1728, 2197, 2744, 3375, 4096, 4913, 5832, 6859, 8000, 9261, 10648, 12167, 864, 15625, 17576, 243, 21952, 24389, 27000, 29791, 32768, 35937, 39304, 42875, 46656, 50653, 54872, 59319, 4000, 68921, 74088, 79507, 85184, 91125, 97336, 103823, 110592, 117649, 125000
Offset: 1

Views

Author

Antti Karttunen, May 27 2016

Keywords

Comments

Multiplicative with a(p^e) = p^A048724(e), where A048724(e) = (e XOR 2e).
Multiples of 8 in the ring defined in A329329. - Peter Munn, Jan 17 2020

Crossrefs

Cf. A262675 (same sequence sorted into ascending order).
Cf. also A270418, A270419, A270436 and permutation A273671.
Row 8 and column 8 of A329329.

Programs

  • Mathematica
    f[p_, e_] := p^BitXor[2*e, e]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 50] (* Amiram Eldar, Sep 07 2023 *)

Formula

a(1) = 1, for n > 1, a(n) = A020639(n)^A048724(A067029(n)) * a(A028234(n)).
Other identities. For all n >= 1:
A270418(a(n)) = 1, A270419(a(n)) = n.
a(n) = A329329(n,8) = A329329(8,n). - Peter Munn, Jan 17 2020

Extensions

Name changed by Antti Karttunen, Sep 07 2023
Showing 1-5 of 5 results.