The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A037327 Numbers whose base-6 and base-7 expansions have the same digit sum. 0
1, 2, 3, 4, 5, 66, 67, 68, 69, 126, 127, 128, 129, 130, 131, 156, 157, 158, 159, 160, 189, 190, 191, 246, 247, 248, 249, 250, 251, 280, 281, 308, 309, 310, 311, 366, 367, 368, 369, 370, 396, 397, 398, 456, 457, 458, 459, 460, 461, 518, 519, 520, 521, 546, 547 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
{n: A053827(n) = A053828(n)}. - R. J. Mathar, Jun 30 2021
PROG
(PARI) isok(k) = sumdigits(k, 6) == sumdigits(k, 7); \\ Michel Marcus, Mar 18 2023
(Python)
from numpy import base_repr
def ok(n):
return sum(map(int, base_repr(n, 6))) == sum(map(int, base_repr(n, 7)))
print([n for n in range(1, 10**5) if ok(n)])
# Christoph B. Kassir, Apr 05 2023
CROSSREFS
Sequence in context: A069881 A004856 A325653 * A075832 A037434 A033170
KEYWORD
nonn,base
AUTHOR
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 May 21 10:20 EDT 2024. Contains 372735 sequences. (Running on oeis4.)