login
a(n) = 9 - (floor(n*Pi) mod 9).
0

%I #20 Aug 07 2024 09:19:23

%S 6,3,9,6,3,9,6,2,8,5,2,8,5,2,7,4,1,7,4,1,7,3,9,6,3,9,6,3,8,5,2,8,5,2,

%T 8,4,1,7,4,1,7,4,9,6,3,9,6,3,9,5,2,8,5,2,8,5,1,7,4,1,7,4,1,6,3,9,6,3,

%U 9,6,2,8,5,2,8,5,2,7,4,1,7,4,1,7,3,9,6,3,9,6,3,8,5,2,8,5,2,8,4,1,7,4,1,7,4

%N a(n) = 9 - (floor(n*Pi) mod 9).

%e a(1) = 9 - (floor(1*Pi) mod 9) = 9 - 3 = 6.

%e a(2) = 9 - (floor(2*Pi) mod 9) = 9 - 6 = 3.

%e a(3) = 9 - (floor(3*Pi) mod 9) = 9 - 0 = 9.

%t 9-Mod[Floor[Pi Range[110]],9] (* _Harvey P. Dale_, Oct 24 2017 *)

%K nonn,easy

%O 1,1

%A _Roger L. Bagula_, Jun 27 2002

%E Edited by _Robert G. Wilson v_, Jun 27 2002