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.

A160727 a(n) = A161415(n+1)/4.

Original entry on oeis.org

2, 3, 7, 3, 9, 9, 23, 3, 9, 9, 27, 9, 27, 27, 73, 3, 9, 9, 27, 9, 27, 27, 81, 9, 27, 27, 81, 27, 81, 81, 227, 3, 9, 9, 27, 9, 27, 27, 81, 9, 27, 27, 81, 27, 81, 81, 243, 9, 27, 27, 81, 27, 81, 81, 243, 27, 81, 81, 243, 81, 243, 243, 697, 3, 9, 9, 27, 9
Offset: 1

Views

Author

Omar E. Pol, Jun 13 2009

Keywords

Examples

			From _Omar E. Pol_, Jan 01 2014: (Start)
Written as an irregular triangle in which row lengths is A000079 the sequence begins:
2;
3,7;
3,9,9,23;
3,9,9,27,9,27,27,73;
3,9,9,27,9,27,27,81,9,27,27,81,27,81,81,227;
3,9,9,27,9,27,27,81,9,27,27,81,27,81,81,243,9,27,27,81,27, 81,81,243,27,81,81,243,81,243,243,697;
(End)
		

Crossrefs

Programs

  • Mathematica
    A160727[n_]:=3^DigitCount[n,2,1]-If[IntegerQ[Log2[n+1]],(n+1)/2,0];Array[A160727,100] (* Paolo Xausa, Sep 01 2023 *)

Formula

a(n) = A048883(n), except a(n) = A048883(n) - (n+1)/2 if n is a power of 2 minus 1. - Omar E. Pol, Jan 06 2014

Extensions

a(11)-a(58) from M. F. Hasler, Dec 03 2012
a(59)-a(68) from Omar E. Pol, Jan 06 2014