OFFSET
1,2
COMMENTS
Mixed-radix number representation produced by a serial counter with generating sequence (1, 3, 1, 3, ...) = A010684.
Places reading from the right have values (1, 2, 8, 16, 64, 128, ...) = unsigned A094014.
Conjecture: This sequence interpreted as quaternary (base 4) numbers gives A126001 (hence a simplified scheme for computing that sequence).
LINKS
Jeremy Gardiner, Table of n, a(n) for n = 1..1024
EXAMPLE
a(15) = 131 since 15 = 1*1+3*2+1*8.
PROG
(Chipmunk BASIC) # see www.nicholson.com/rhn/basic/
do : rem serial counter
z=z+1
if z>1 then z=0 : y=y+1
if y>3 then y=0 : x=x+1
if x>1 then x=0 : w=w+1
if w>3 then print : end
s$=str$(w)+str$(x)+str$(y)+str$(z)
c=val(s$) : rem strip leading zeros
print str$(c)+", ";
loop
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jeremy Gardiner, Jan 04 2014
STATUS
approved