login
Decimal expansion of 1/74.
1

%I #13 Apr 24 2014 09:37:05

%S 0,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,

%T 1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,

%U 3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5

%N Decimal expansion of 1/74.

%F a(n) = (2n-1) mod 6, for n > 0. - _Wesley Ivan Hurt_, Apr 23 2014

%p a:= n-> `if`(n=0, 0, irem(2*n-1, 6)): seq(a(n), n=0..99); # _Zerinvary Lajos_, Nov 30 2006

%t Table[Mod[2 n - 1, 6] - 5 Floor[1/(n+1)], {n, 0, 100}] (* _Wesley Ivan Hurt_, Apr 23 2014 *)

%K nonn,easy,cons

%O 0,3

%A _N. J. A. Sloane_, Dec 11 1996