|
|
A211979
|
|
Numbers n formed by p 1's followed by p - 1 0's, where p is prime(n).
|
|
0
|
|
|
110, 11100, 111110000, 1111111000000, 111111111110000000000, 1111111111111000000000000, 111111111111111110000000000000000, 1111111111111111111000000000000000000, 111111111111111111111110000000000000000000000
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
For n = 3, the third prime is 5, so a(3) = 111110000 (five 1's followed by four 0's).
|
|
MATHEMATICA
|
(* Technically this is in base 10 *) Table[10^(Prime[n] - 1)((10^Prime[n] - 1)/9), {n, 20}] (* Alonso del Arte, Dec 12 2012 *)
FromDigits[Join[PadRight[{}, #, 1], PadRight[{}, #-1, 0]]]&/@ Prime[ Range[ 10]] (* Harvey P. Dale, Aug 30 2015 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|