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!)
A351598 Digitally balanced numbers b (A031443) such that b^b is also digitally balanced. 0
49, 8677, 53543, 141169, 202055, 755917 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
balQ[n_] := Module[{d = IntegerDigits[n, 2], m}, EvenQ @ (m = Length @ d) && Count[d, 1] == m/2]; Select[Range[10000], balQ[#] && balQ[#^#] &] (* Amiram Eldar, May 03 2022 *)
PROG
(Python)
from itertools import count, islice
def isdb(n): b = bin(n)[2:]; return b.count("0") == b.count("1")
def agen(): yield from (b for b in count(1) if isdb(b) and isdb(b**b))
print(list(islice(agen(), 2))) # Michael S. Branicky, Jun 12 2022
CROSSREFS
Sequence in context: A283788 A206247 A180273 * A014801 A187406 A094199
KEYWORD
nonn,base,hard,more
AUTHOR
Alex Ratushnyak, May 02 2022
EXTENSIONS
a(4)-a(6) from Amiram Eldar, May 03 2022
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 July 15 11:27 EDT 2024. Contains 374332 sequences. (Running on oeis4.)