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.

A268673 a(0) = 0; a(1) = 1; for n > 1, a(n) = 1 + 4*A092246(n-1).

Original entry on oeis.org

0, 1, 5, 29, 45, 53, 77, 85, 101, 125, 141, 149, 165, 189, 197, 221, 237, 245, 269, 277, 293, 317, 325, 349, 365, 373, 389, 413, 429, 437, 461, 469, 485, 509, 525, 533, 549, 573, 581, 605, 621, 629, 645, 669, 685, 693, 717, 725, 741, 765, 773, 797, 813, 821, 845, 853, 869, 893, 909, 917, 933, 957, 965, 989, 1005
Offset: 0

Views

Author

Antti Karttunen, Feb 19 2016

Keywords

Comments

Seems to be also the fixed points of permutations A268823 and A268824.

Crossrefs

Cf. also A092246, A268717.
Many (but not all) terms of A013710 seem to be included.

Programs

  • Mathematica
    Join[{0, 1}, 1 + 4 Select[Range[1, 251, 2], OddQ[Total[IntegerDigits[#, 2]]]&]] (* Jean-François Alcover, Mar 15 2016 *)
  • Python
    def A268673(n): return (((m:=n-2)<<4)+(13 if m.bit_count()&1 else 5)) if n>1 else n # Chai Wah Wu, Mar 03 2023
  • Scheme
    (define (A268673 n) (if (<= n 1) n (+ 1 (* 4 (A092246 (- n 1))))))
    

Formula

a(0) = 0; a(1) = 1; for n > 1, a(n) = 1 + 4*A092246(n-1).