login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Period of binary representation of 1/n, or 0 if 1/n terminates.
0

%I #33 May 02 2022 01:40:48

%S 0,0,2,0,4,2,3,0,6,4,10,2,12,3,4,0,8,6,18,4,6,10,11,2,20,12,18,3,28,4,

%T 5,0,10,8,12,6,36,18,12,4,20,6,14,10,12,11,23,2,21,20,8,12,52,18,20,3,

%U 18,28,58,4,60,5,6,0,12,10,66,8,22,12,35,6,9,36,20,18,30,12,39,4,54,20,82,6

%N Period of binary representation of 1/n, or 0 if 1/n terminates.

%C The difference from A007733 is that if n is a power of 2 this sequence has 0, whereas A007733(2^n) = 1.

%Y Cf. A007733, which is the main entry for this problem.

%Y Cf. A242595.

%Y Cf. A249772 (base 6), A051626 (decimal), A246004 (base 12).

%K nonn,base

%O 1,3

%A _Herbert Eberle_, Mar 15 2022