A183211 First of two trees generated by floor[(3n-1)/2].
1, 3, 4, 9, 5, 12, 13, 27, 7, 15, 17, 36, 19, 39, 40, 81, 10, 21, 22, 45, 25, 51, 53, 108, 28, 57, 58, 117, 59, 120, 121, 243, 14, 30, 31, 63, 32, 66, 67, 135, 37, 75, 76, 153, 79, 159, 161, 324, 41, 84, 85, 171, 86, 174, 175, 351, 88, 177
Offset: 1
Keywords
Examples
First four levels of the tree: .......................1 .......................3 ..............4..................9 ............5...12............13....27
Links
- Ivan Neretin, Table of n, a(n) for n = 1..8192
Programs
-
Mathematica
a = {1, 3}; row = {a[[-1]]}; Do[a = Join[a, row = Flatten[{Quotient[3 # - 1, 2], 3 #} & /@ row]], {n, 5}]; a (* Ivan Neretin, May 25 2015 *)
Formula
See the formula at A183209, but use L(n)=floor[(3n-1)/2] and U(n)=3n instead of L(n)=floor(3n/2) and U(n)=3n-1.
Comments