Monday, 26 October 2026

Even More Hidden Beast Numbers

In a post titled Hidden Beast Numbers from the 6th August 2023 (Hiroshima Day), I looked at numbers whose sum of prime factors (with and without multiplicity) add to 666. An example would be 998515 where$$ \begin{align} 998515 = 5 \times 7 \times 47 \times 607\\5+7+47+607=666 \end{align}$$In a later post titled More Hidden Beast Numbers from the 21st August 2024, I looked at numbers where the digit sequence 666 shows up when they are rendered in other bases. An example would be 27534 where$$39862_{10}=115666_8$$Today, the number associated with my diurnal age (28330) has the property that$$ \begin{align} 28330 &=2 \times 5 \times 2833 \\ &=5 \times 5666 \end{align}$$I got Gemini to write a program using the following prompt:

Write a program in SageMath that will examine all positive, composite integers in a given range. Let the default range be from 4 to 40000. The criteria to be applied are that the number does not have "6" as a digit and neither do any of its prime factors. However, the prime factors can be combined to form a composite factor containing the digit sequence "666". An example would be 28330 = 2 * 5 * 2833. When factored as 5 * 5666, the factor "5666" contains the digit sequence "666". Output should be a table showing the number, its prime factorisation and its adjusted factorisation. Output should also include a comma-separated list of suitable numbers along with a count of how many there are in the given range.

Here is the output (permalink):

│ Number │ Prime Factorisation  │ Adjusted Factorisation  │
╞════════╪══════════════════════╪═════════════════════════╡
│ 1332   │ 2^2 * 3^2 * 37       │ 2 * 666                 │
├────────┼──────────────────────┼─────────────────────────┤
│ 1998   │ 2 * 3^3 * 37         │ 3 * 666                 │
├────────┼──────────────────────┼─────────────────────────┤
│ 3330   │ 2 * 3^2 * 5 * 37     │ 5 * 666                 │
├────────┼──────────────────────┼─────────────────────────┤
│ 3332   │ 2^2 * 7^2 * 17       │ 2 * 1666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 4998   │ 2 * 3 * 7^2 * 17     │ 3 * 1666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 5328   │ 2^4 * 3^2 * 37       │ 2 * 2 * 2 * 666         │
├────────┼──────────────────────┼─────────────────────────┤
│ 5332   │ 2^2 * 31 * 43        │ 2 * 2666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 5994   │ 2 * 3^4 * 37         │ 3 * 3 * 666             │
├────────┼──────────────────────┼─────────────────────────┤
│ 7332   │ 2^2 * 3 * 13 * 47    │ 2 * 3666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 7992   │ 2^3 * 3^3 * 37       │ 2 * 2 * 3 * 666         │
├────────┼──────────────────────┼─────────────────────────┤
│ 7998   │ 2 * 3 * 31 * 43      │ 3 * 2666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 8330   │ 2 * 5 * 7^2 * 17     │ 5 * 1666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 9324   │ 2^2 * 3^2 * 7 * 37   │ 2 * 7 * 666             │
├────────┼──────────────────────┼─────────────────────────┤
│ 9332   │ 2^2 * 2333           │ 2 * 4666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 9990   │ 2 * 3^3 * 5 * 37     │ 3 * 5 * 666             │
├────────┼──────────────────────┼─────────────────────────┤
│ 10998  │ 2 * 3^2 * 13 * 47    │ 3 * 3666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 11322  │ 2 * 3^2 * 17 * 37    │ 17 * 666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 11332  │ 2^2 * 2833           │ 2 * 5666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 11988  │ 2^2 * 3^4 * 37       │ 2 * 3 * 3 * 666         │
├────────┼──────────────────────┼─────────────────────────┤
│ 13320  │ 2^3 * 3^2 * 5 * 37   │ 2 * 2 * 5 * 666         │
├────────┼──────────────────────┼─────────────────────────┤
│ 13324  │ 2^2 * 3331           │ 2 * 6662                │
├────────┼──────────────────────┼─────────────────────────┤
│ 13328  │ 2^4 * 7^2 * 17       │ 2 * 2 * 2 * 1666        │
├────────┼──────────────────────┼─────────────────────────┤
│ 13330  │ 2 * 5 * 31 * 43      │ 5 * 2666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 13332  │ 2^2 * 3 * 11 * 101   │ 2 * 6666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 13334  │ 2 * 59 * 113         │ 2 * 6667                │
├────────┼──────────────────────┼─────────────────────────┤
│ 13338  │ 2 * 3^3 * 13 * 19    │ 2 * 6669                │
├────────┼──────────────────────┼─────────────────────────┤
│ 13998  │ 2 * 3 * 2333         │ 3 * 4666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 14994  │ 2 * 3^2 * 7^2 * 17   │ 3 * 3 * 1666            │
├────────┼──────────────────────┼─────────────────────────┤
│ 15318  │ 2 * 3^2 * 23 * 37    │ 23 * 666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 15332  │ 2^2 * 3833           │ 2 * 7666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 15984  │ 2^4 * 3^3 * 37       │ 2 * 2 * 2 * 3 * 666     │
├────────┼──────────────────────┼─────────────────────────┤
│ 17982  │ 2 * 3^5 * 37         │ 3 * 3 * 3 * 666         │
├────────┼──────────────────────┼─────────────────────────┤
│ 18330  │ 2 * 3 * 5 * 13 * 47  │ 5 * 3666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 19314  │ 2 * 3^2 * 29 * 37    │ 29 * 666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 19332  │ 2^2 * 3^3 * 179      │ 2 * 9666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 19980  │ 2^2 * 3^3 * 5 * 37   │ 2 * 3 * 5 * 666         │
├────────┼──────────────────────┼─────────────────────────┤
│ 19989  │ 3^2 * 2221           │ 3 * 6663                │
├────────┼──────────────────────┼─────────────────────────┤
│ 19992  │ 2^3 * 3 * 7^2 * 17   │ 2 * 2 * 3 * 1666        │
├────────┼──────────────────────┼─────────────────────────┤
│ 19995  │ 3 * 5 * 31 * 43      │ 3 * 6665                │
├────────┼──────────────────────┼─────────────────────────┤
│ 19998  │ 2 * 3^2 * 11 * 101   │ 3 * 6666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 20001  │ 3 * 59 * 113         │ 3 * 6667                │
├────────┼──────────────────────┼─────────────────────────┤
│ 20007  │ 3^4 * 13 * 19        │ 3 * 6669                │
├────────┼──────────────────────┼─────────────────────────┤
│ 21312  │ 2^6 * 3^2 * 37       │ 2 * 2 * 2 * 2 * 2 * 666 │
├────────┼──────────────────────┼─────────────────────────┤
│ 21328  │ 2^4 * 31 * 43        │ 2 * 2 * 2 * 2666        │
├────────┼──────────────────────┼─────────────────────────┤
│ 21332  │ 2^2 * 5333           │ 2 * 10666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 21978  │ 2 * 3^3 * 11 * 37    │ 3 * 11 * 666            │
├────────┼──────────────────────┼─────────────────────────┤
│ 22998  │ 2 * 3 * 3833         │ 3 * 7666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 23310  │ 2 * 3^2 * 5 * 7 * 37 │ 5 * 7 * 666             │
├────────┼──────────────────────┼─────────────────────────┤
│ 23324  │ 2^2 * 7^3 * 17       │ 2 * 7 * 1666            │
├────────┼──────────────────────┼─────────────────────────┤
│ 23330  │ 2 * 5 * 2333         │ 5 * 4666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 23332  │ 2^2 * 19 * 307       │ 2 * 11666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 23994  │ 2 * 3^2 * 31 * 43    │ 3 * 3 * 2666            │
├────────┼──────────────────────┼─────────────────────────┤
│ 24990  │ 2 * 3 * 5 * 7^2 * 17 │ 3 * 5 * 1666            │
├────────┼──────────────────────┼─────────────────────────┤
│ 25308  │ 2^2 * 3^2 * 19 * 37  │ 2 * 19 * 666            │
├────────┼──────────────────────┼─────────────────────────┤
│ 25332  │ 2^2 * 3 * 2111       │ 2 * 12666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 25974  │ 2 * 3^3 * 13 * 37    │ 3 * 13 * 666            │
├────────┼──────────────────────┼─────────────────────────┤
│ 27972  │ 2^2 * 3^3 * 7 * 37   │ 2 * 3 * 7 * 666         │
├────────┼──────────────────────┼─────────────────────────┤
│ 28322  │ 2 * 7^2 * 17^2       │ 17 * 1666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 28330  │ 2 * 5 * 2833         │ 5 * 5666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 28998  │ 2 * 3^4 * 179        │ 3 * 9666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 29304  │ 2^3 * 3^2 * 11 * 37  │ 2 * 2 * 11 * 666        │
├────────┼──────────────────────┼─────────────────────────┤
│ 29328  │ 2^4 * 3 * 13 * 47    │ 2 * 2 * 2 * 3666        │
├────────┼──────────────────────┼─────────────────────────┤
│ 29332  │ 2^2 * 7333           │ 2 * 14666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 29970  │ 2 * 3^4 * 5 * 37     │ 3 * 3 * 5 * 666         │
├────────┼──────────────────────┼─────────────────────────┤
│ 29988  │ 2^2 * 3^2 * 7^2 * 17 │ 2 * 3 * 3 * 1666        │
├────────┼──────────────────────┼─────────────────────────┤
│ 31302  │ 2 * 3^2 * 37 * 47    │ 47 * 666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 31332  │ 2^2 * 3 * 7 * 373    │ 2 * 15666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 31992  │ 2^3 * 3 * 31 * 43    │ 2 * 2 * 3 * 2666        │
├────────┼──────────────────────┼─────────────────────────┤
│ 31998  │ 2 * 3 * 5333         │ 3 * 10666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 32994  │ 2 * 3^3 * 13 * 47    │ 3 * 3 * 3666            │
├────────┼──────────────────────┼─────────────────────────┤
│ 33300  │ 2^2 * 3^2 * 5^2 * 37 │ 2 * 5 * 5 * 666         │
├────────┼──────────────────────┼─────────────────────────┤
│ 33310  │ 2 * 5 * 3331         │ 5 * 6662                │
├────────┼──────────────────────┼─────────────────────────┤
│ 33315  │ 3 * 5 * 2221         │ 5 * 6663                │
├────────┼──────────────────────┼─────────────────────────┤
│ 33320  │ 2^3 * 5 * 7^2 * 17   │ 2 * 2 * 5 * 1666        │
├────────┼──────────────────────┼─────────────────────────┤
│ 33324  │ 2^2 * 3 * 2777       │ 2 * 16662               │
├────────┼──────────────────────┼─────────────────────────┤
│ 33325  │ 5^2 * 31 * 43        │ 5 * 6665                │
├────────┼──────────────────────┼─────────────────────────┤
│ 33328  │ 2^4 * 2083           │ 2 * 16664               │
├────────┼──────────────────────┼─────────────────────────┤
│ 33330  │ 2 * 3 * 5 * 11 * 101 │ 5 * 6666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 33334  │ 2 * 7 * 2381         │ 2 * 16667               │
├────────┼──────────────────────┼─────────────────────────┤
│ 33335  │ 5 * 59 * 113         │ 5 * 6667                │
├────────┼──────────────────────┼─────────────────────────┤
│ 33338  │ 2 * 79 * 211         │ 2 * 16669               │
├────────┼──────────────────────┼─────────────────────────┤
│ 33345  │ 3^3 * 5 * 13 * 19    │ 5 * 6669                │
├────────┼──────────────────────┼─────────────────────────┤
│ 34998  │ 2 * 3 * 19 * 307     │ 3 * 11666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 35298  │ 2 * 3^2 * 37 * 53    │ 53 * 666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 35332  │ 2^2 * 11^2 * 73      │ 2 * 17666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 37324  │ 2^2 * 7 * 31 * 43    │ 2 * 7 * 2666            │
├────────┼──────────────────────┼─────────────────────────┤
│ 37328  │ 2^4 * 2333           │ 2 * 2 * 2 * 4666        │
├────────┼──────────────────────┼─────────────────────────┤
│ 37998  │ 2 * 3^2 * 2111       │ 3 * 12666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 38318  │ 2 * 7^2 * 17 * 23    │ 23 * 1666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 38330  │ 2 * 5 * 3833         │ 5 * 7666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 39294  │ 2 * 3^2 * 37 * 59    │ 59 * 666                │
├────────┼──────────────────────┼─────────────────────────┤
│ 39332  │ 2^2 * 9833           │ 2 * 19666               │
├────────┼──────────────────────┼─────────────────────────┤
│ 39972  │ 2^2 * 3 * 3331       │ 2 * 3 * 6662            │
├────────┼──────────────────────┼─────────────────────────┤
│ 39978  │ 2 * 3^2 * 2221       │ 2 * 3 * 6663            │
├────────┼──────────────────────┼─────────────────────────┤
│ 39984  │ 2^4 * 3 * 7^2 * 17   │ 2 * 2 * 2 * 3 * 1666    │
├────────┼──────────────────────┼─────────────────────────┤
│ 39990  │ 2 * 3 * 5 * 31 * 43  │ 3 * 5 * 2666            │
└────────┴──────────────────────┴─────────────────────────┘

Suitable numbers: 
 
1332, 1998, 3330, 3332, 4998, 5328, 5332, 5994, 7332, 7992, 7998, 8330, 9324, 9332, 9990, 10998, 11322, 11332, 11988, 13320, 13324, 13328, 13330, 13332, 13334, 13338, 13998, 14994, 15318, 15332, 15984, 17982, 18330, 19314, 19332, 19980, 19989, 19992, 19995, 19998, 20001, 20007, 21312, 21328, 21332, 21978, 22998, 23310, 23324, 23330, 23332, 23994, 24990, 25308, 25332, 25974, 27972, 28322, 28330, 28998, 29304, 29328, 29332, 29970, 29988, 31302, 31332, 31992, 31998, 32994, 33300, 33310, 33315, 33320, 33324, 33325, 33328, 33330, 33334, 33335, 33338, 33345, 34998, 35298, 35332, 37324, 37328, 37998, 38318, 38330, 39294, 39332, 39972, 39978, 39984, 39990 
 
Total count in range [4, 40000]: 96

No comments:

Post a Comment