login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A145491 In these bases, there exist numbers written with only one distinct digit whose translation in binary is also written with the same lonely digit. 0
5, 6, 14, 30, 62, 90, 126, 254, 510, 1022, 2046, 4094, 8190 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
All terms are equal to 2^n-2, except 5 and 90.
In base 2^n-2, we need 2 digits when there are n digits in binary.
In base 5, we need 3 digits for 5 digits in binary.
In base 90, we need 3 digits for 13 digits in binary.
LINKS
EXAMPLE
In base 5 : 11111[2] = 111[5].
In base 90 : 1111111111111[2] = 111[90].
PROG
(Python) from math import *
.for b1 in range(2, 3):
....for b2 in range(b1+1, 10001):
........for m in range(2, 20):
............for n in range(2, m+1):
................if (1-b1**m)*(1-b2)==(1-b1)*(1-b2**n):
....................print "b1, b2=", b1, b2, " m, n=", m, n
CROSSREFS
Sequence in context: A180686 A308822 A289190 * A282466 A060724 A064949
KEYWORD
base,nonn,more
AUTHOR
Sébastien Dumortier and Bastien Lapeyre, Oct 11 2008
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 08:27 EDT 2024. Contains 371964 sequences. (Running on oeis4.)