The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A354047 A169683 read as ternary numbers. 2
 0, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 13, 14, 15, 18, 27, 28, 29, 30, 31, 32, 33, 36, 37, 38, 39, 40, 41, 42, 45, 54, 81, 82, 83, 84, 85, 86, 87, 90, 91, 92, 93, 94, 95, 96, 99, 108, 109, 110, 111, 112, 113, 114, 117, 118, 119, 120, 121, 122, 123, 126, 135, 162 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 COMMENTS a(0) = 0; if a(n) is of the form (3*m+2) * 3^r, then a(n+1) = (3*m+3) * 3^r, otherwise a(n+1) = a(n) + 1. Viewed as a list, numbers whose ternary expansion contains only 0 and 1, except that the least significant nonzero digit can be 2. LINKS Jianing Song, Table of n, a(n) for n = 0..16382 FORMULA a(0) = 0; for n >= 1, a(2^n-1+i) = a(i) + 3^(n-1) for 0 <= i <= 2^n-1. EXAMPLE a(2^1-1..2^2-2) = a(0..2^1-1) + 3^0 = [1, 2]; a(2^2-1..2^3-2) = a(0..2^2-1) + 3^1 = [3, 4, 5, 6]; a(2^3-1..2^4-2) = a(0..2^3-1) + 3^2 = [9, 10, 11, 12, 13, 14, 15, 18]; a(2^4-1..2^5-2) = a(0..2^4-1) + 3^3 = [27, 28, 29, 30, 31, 32, 33, 36, 37, 38, 39, 40, 41, 42, 45, 54]; ... PROG (PARI) A354047(lim) = my(v=vector(1<

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified May 29 00:29 EDT 2024. Contains 372921 sequences. (Running on oeis4.)