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.

Previous Showing 11-12 of 12 results.

A105108 Write numbers in ternary under each other; to get the next block of 3^k (k >= 0) terms of the sequence, start at 3^k, read diagonals in upward direction and convert to decimal.

Original entry on oeis.org

0, 1, 2, 5, 3, 4, 8, 6, 7, 16, 11, 9, 10, 14, 12, 13, 17, 15, 25, 20, 18, 19, 23, 21, 22, 26, 24, 51, 34, 29, 27, 28, 32, 30, 31, 35, 33, 43, 38, 36, 37, 41, 39, 40, 44, 42, 52, 47, 45, 46, 50, 48, 49, 53, 78, 61, 56, 54, 55, 59, 57, 58, 62, 60, 70, 65, 63, 64, 68, 66, 67, 71, 69
Offset: 0

Views

Author

John W. Layman, Apr 07 2005

Keywords

Comments

This is a permutation of the nonnegative integers.

Examples

			..0
..1
..2
.10
.11
.12
.20
.21
.22
100 <- Starting here, the upward diagonals
101 read 121,102,100,..., giving 16,11,9,...
102
		

Crossrefs

Cf. A105027.

A105153 Consider trajectory of n under repeated application of map k -> A105025(k); a(n) = length of cycle.

Original entry on oeis.org

1, 1, 2, 2, 1, 2, 1, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 1, 4, 4, 4, 1, 4, 4, 4, 1, 4, 4, 4, 1, 4, 4, 4, 4, 8, 4, 4, 4, 4, 8, 4, 4, 8, 4, 4, 4, 4, 8, 4, 4, 8, 4, 4, 4, 4, 8, 4, 4, 8, 4, 4, 4, 4, 8, 2, 16, 8, 4, 2, 4, 8, 16, 2, 16, 8, 4, 2, 4, 8, 16, 2, 16, 8, 4, 2, 4, 8, 16, 2, 16, 8, 4, 2, 4, 8, 16, 2, 16, 8, 4, 2
Offset: 0

Views

Author

Philippe Deléham, Apr 30 2005

Keywords

Comments

Why is this always a power of 2?

Crossrefs

Positions of 1's: A105271.

Programs

  • Haskell
    a105153 n = t [n] where
       t xs@(x:_) | y `elem` xs = length xs
                  | otherwise   = t (y : xs) where y = a105025 x
    -- Reinhard Zumkeller, Jul 21 2012

Extensions

More terms from R. J. Mathar, Aug 10 2007
Previous Showing 11-12 of 12 results.