Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A134026
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A134026 Numbers that are in balanced ternary representation longer than in ternary representation. +0
4
2, 5, 6, 7, 8, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131 (list; graph; listen)
OFFSET

1,1

COMMENT

A134021(a(n)) = A081604(a(n)) + 1;

complement of A134025.

FORMULA

a(n) = g(n,0,0) with g(n,m,k) = if n=0 then k else if k=3^m-1 then g(n-1,m,3*(k+1)/2+1) else g(n-1,m,k+1).

a(n) = g(n,0,0) with g(n,m,k) = if n=0 then k else if k=3^m-1 then g(n-1,m,3*(k+1)/2+1) else g(n-1,m,k+1).

CROSSREFS

Sequence in context: A028791 A080727 A074291 this_sequence A043047 A014355 A048972

Adjacent sequences: A134023 A134024 A134025 this_sequence A134027 A134028 A134029

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Oct 19 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 4 21:35 EST 2008. Contains 151309 sequences.


AT&T Labs Research