login
n written in fractional base 5/2.
3

%I #8 May 14 2021 07:13:05

%S 0,1,2,3,4,20,21,22,23,24,40,41,42,43,44,210,211,212,213,214,230,231,

%T 232,233,234,400,401,402,403,404,420,421,422,423,424,440,441,442,443,

%U 444,2110,2111,2112,2113,2114,2130,2131,2132,2133,2134,2300,2301,2302,2303

%N n written in fractional base 5/2.

%H Alois P. Heinz, <a href="/A024632/b024632.txt">Table of n, a(n) for n = 0..10000</a>

%F To represent a number in base b, if a digit exceeds b, subtract b and carry 1. In fractional base a/b, subtract a and carry b.

%p a:= proc(n) `if`(n<1, 0, irem(n, 5, 'q')+a(2*q)*10) end:

%p seq(a(n), n=0..53); # _Alois P. Heinz_, May 14 2021

%K nonn,base

%O 0,3

%A _David W. Wilson_