cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A246004 The duodecimal period of 1/n, or 0 if 1/n terminates.

This page as a plain text file.
%I A246004 #36 Jun 30 2019 10:15:47
%S A246004 0,0,0,0,4,0,6,0,0,4,1,0,2,6,4,0,16,0,6,4,6,1,11,0,20,2,0,6,4,4,30,0,
%T A246004 1,16,12,0,9,6,2,4,40,6,42,1,4,11,23,0,42,20,16,2,52,0,4,6,6,4,29,4,
%U A246004 15,30,6,0,4,1,66,16,11,12,35,0,36,9,20,6,6,2,26,4,0,40,41,6,16,42,4,1,8,4,6,11,30,23,12,0,16,42,1,20,100,16,102,2,12,52,53,0,54,4,9,6,112
%N A246004 The duodecimal period of 1/n, or 0 if 1/n terminates.
%H A246004 Michael De Vlieger, <a href="/A246004/b246004.txt">Table of n, a(n) for n = 1..10000</a>
%e A246004 1/10 = 0.1249724972497... has period 4 in duodecimal, so a(10) = 4.
%e A246004 1/23 = 0.0631694842106316948421... has period 11 in duodecimal, so a(23) = 11.
%t A246004 a246004[n_Integer] :=
%t A246004 Table[Length[RealDigits[1/i, 12][[1, -1]]], {i,
%t A246004    n}]; a246004[120] (* _Michael De Vlieger_, Nov 13 2014, after _Harvey P. Dale_ at A051626 *)
%Y A246004 Cf. A007732, A051626 (decimal versions).
%Y A246004 Cf. A246489.
%K A246004 nonn,base
%O A246004 1,5
%A A246004 _Eric Chen_, Nov 13 2014