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.

A376692 Numbers with the most significant digit odd and alternating parity of digits.

Original entry on oeis.org

1, 3, 5, 7, 9, 10, 12, 14, 16, 18, 30, 32, 34, 36, 38, 50, 52, 54, 56, 58, 70, 72, 74, 76, 78, 90, 92, 94, 96, 98, 101, 103, 105, 107, 109, 121, 123, 125, 127, 129, 141, 143, 145, 147, 149, 161, 163, 165, 167, 169, 181, 183, 185, 187, 189, 301, 303, 305, 307, 309
Offset: 1

Views

Author

Andrew Howroyd, Oct 01 2024

Keywords

Crossrefs

Complement of A062285 within A030141.

Programs

  • PARI
    isok(n)=my(d=digits(n)); for(i=1, #d, if((d[i]-i)%2, return(0))); 1