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.

A383030 Indices of the even terms in the sequence of exponentially odd numbers.

Original entry on oeis.org

2, 5, 7, 8, 11, 16, 18, 19, 22, 24, 26, 29, 31, 33, 35, 39, 41, 43, 46, 48, 51, 54, 56, 58, 61, 63, 67, 69, 72, 74, 76, 79, 82, 84, 86, 87, 91, 93, 96, 98, 100, 103, 106, 109, 110, 113, 115, 119, 121, 122, 124, 126, 129, 131, 133, 136, 139, 144, 147, 149, 152
Offset: 1

Views

Author

Amiram Eldar, Apr 13 2025

Keywords

Comments

The asymptotic density of this sequence is 2/5.

Crossrefs

Programs

  • Mathematica
    expOddQ[n_] := AllTrue[FactorInteger[n][[;; , 2]], OddQ]; Position[Select[Range[350], expOddQ], _?EvenQ] // Flatten
  • PARI
    isexpodd(n) = {my(f = factor(n)); for(i=1, #f~, if(!(f[i, 2] % 2), return (0))); 1;}
    list(lim) = {my(c = 0); for(k = 1, lim, if(isexpodd(k), c++; if(!(k % 2), print1(c, ", "))));}

Formula

A383029(a(n)) > 0.