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.

A038574 Write n in ternary, sort digits into increasing order.

Original entry on oeis.org

0, 1, 2, 1, 4, 5, 2, 5, 8, 1, 4, 5, 4, 13, 14, 5, 14, 17, 2, 5, 8, 5, 14, 17, 8, 17, 26, 1, 4, 5, 4, 13, 14, 5, 14, 17, 4, 13, 14, 13, 40, 41, 14, 41, 44, 5, 14, 17, 14, 41, 44, 17, 44, 53, 2, 5, 8, 5, 14, 17, 8, 17, 26, 5, 14, 17, 14, 41, 44, 17, 44, 53, 8, 17, 26, 17, 44, 53, 26, 53, 80
Offset: 0

Views

Author

Keywords

Examples

			15 = 120 -> 012 = 5, so a(15)=5.
		

Crossrefs

Programs

  • Mathematica
    Table[FromDigits[Sort[IntegerDigits[n,3]],3],{n,0,90}] (* Harvey P. Dale, Dec 08 2015 *)

Extensions

More terms from Erich Friedman.