cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A349031 The "Fouriest" numbers: numbers that can be expressed as a string of 4's longer than the original number in some base.

Original entry on oeis.org

624, 3124, 6220, 15624, 37324, 78124, 78432, 223948, 390624, 549028, 1343692, 1953124, 3843200, 8062156, 9586980, 9765624, 26902404, 48372940, 48828124, 76695844, 188316832, 244140624, 290237644, 613566756, 1220703124, 1318217828, 1741425868, 4908534052
Offset: 1

Views

Author

David Consiglio, Jr., Nov 06 2021

Keywords

Comments

Inspired by Saturday Morning Breakfast Cereal comics.
The "Fouriest" numbers. The number shown in the comment, 624, is correctly identified as a term of the sequence.

Examples

			624 is a member of this sequence because 624 expressed in base 5 is 4444. 4444 has 4 digits and 624 has only 3.
		

Crossrefs

For the Fouriest transform see A268236-A268238, A268300. - N. J. A. Sloane, Nov 19 2021

Programs

  • Python
    from math import log
    def A349031(limit):
        super_fours = []
        for length in range(4,int(log(limit,5))+1):
            fours = "4"*length
            for base in range(5, 10):
                keep = 4*(1-base**length)//(1-base)
                if len(str(keep)) < len(fours) and keep < limit:
                    super_fours.append(keep)
        return sorted(super_fours)
    result = A349031(10**20)