|
|
A117060
|
|
Mersenne numbers for which the product of the digits is not zero.
|
|
1
|
|
|
1, 3, 7, 15, 31, 63, 127, 255, 511, 8191, 16383, 32767, 65535, 262143, 524287, 16777215, 33554431, 134217727, 268435455, 2147483647, 4294967295, 8589934591, 17179869183, 34359738367, 68719476735, 137438953471, 549755813887, 562949953421311
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
These are all the Mersenne numbers for which no digit is 0. The indices of these numbers are A007377.
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
Flatten[Table[If[First@Union@IntegerDigits[2^n - 1] != 0, 2^n - 1, {}], {n, 100}]] (* Arkadiusz Wesolowski, Sep 04 2011 *)
|
|
PROG
|
(Perl) use bignum;
for(1..99) {
if((1<<$_) =~ /^[1-9]+$/) {
print(((1 << $_) - 1) . ", ")
}
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
Luc Stevens (lms022(AT)yahoo.com), Apr 16 2006
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|