|
Search: id:A067556
|
|
|
| A067556 |
|
Terms in the decimal expansion of 1/(7*2^n) before the block of decimals 142857 (the period of 1/7) appears. |
|
+0 4
|
|
| 7, 357, 17857, 892857, 44642857, 2232, 111607, 5580357, 279017857, 13950892857, 697544642857, 34877232, 1743861607, 87193080357, 4359654017857, 217982700892857, 10899135044642857, 544956752232, 27247837611607
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
Example : 1/(7*2^5) = 0.0044642857(142857...) where 142857 is the period of 1/7, hence a(5)=44642857.
|
|
FORMULA
|
a(n)=(1/7)*(5^n*10^(n mod 6)-1)
|
|
PROGRAM
|
(PARI) a(n)=(1/7)*(5^n*10^(n%6)-1)
(PARI) a(n)=if(n<0, 0, s=1; while(frac(10^s/7/2^n-1/7)>0, s++); floor(10^s/7/2^n))
|
|
CROSSREFS
|
Sequence in context: A109493 A015479 A142669 this_sequence A082098 A057634 A145181
Adjacent sequences: A067553 A067554 A067555 this_sequence A067557 A067558 A067559
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
Benoit Cloitre (benoit7848c(AT)orange.fr), Jan 29 2002; revised Dec 11, 2004
|
|
|
Search completed in 0.002 seconds
|