|
Search: id:A114206
|
|
| |
|
| 1, 0, 2, 1, 1, 0, 3, 0, 1, 1, 2, 1, 1, 1, 4, 1, 1, 1, 2, 1, 1, 1, 3, 2, 1, 1, 2, 1, 1, 1, 5, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 1, 1, 1, 4, 1, 2, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 1, 1, 1, 6, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 2, 2, 1, 1, 1, 4, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 1, 1, 1, 5, 1, 1, 1, 2
(list; graph; listen)
|
|
|
OFFSET
|
2,3
|
|
|
MATHEMATICA
|
fb[n_] := Block[{rd, o, p}, rd = RealDigits[1/n]; o = Last[rd]; p = First[rd]; If[ ! IntegerQ[Last[p]], p = Most[p]]; Length[p] - o]; Table[fb[n], {n, 120}] (*Chandler*)
r[x_]:=RealDigits[1/x]; w[x_]:=First[r[x]]; f[x_]:=First[w[x]]; l [x_]:=Last[w[x]]; z[x_]:=Last[r[x]]; b[x_] := Which[IntegerQ[l[x]], Length[w[x]]-1*z[x], IntegerQ[f[x]] ==False, -1*z[x], True, Length[Drop[w[x], -1]]-1*z[x]]; (*Havermann*)
Table[b[i], {i, 2, 128}]
|
|
CROSSREFS
|
Sequence in context: A065715 A051628 A127967 this_sequence A073202 A055212 A028422
Adjacent sequences: A114203 A114204 A114205 this_sequence A114207 A114208 A114209
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
njas, Oct 17 2006
|
|
EXTENSIONS
|
More terms from Ray Chandler (rayjchandler(AT)sbcglobal.net) and Hans Havermann, Oct 18 2006
|
|
|
Search completed in 0.002 seconds
|