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.

Showing 1-3 of 3 results.

A363758 Maximum sum of digits for any number with n digits in fractional base 4/3.

Original entry on oeis.org

0, 3, 6, 8, 9, 12, 13, 15, 17, 19, 22, 24, 26, 28, 30, 32, 33, 36, 37, 40, 42, 44, 46, 48, 50, 52, 54, 56, 57, 60, 62, 65, 67, 70, 71, 73, 75, 77, 80, 83, 84, 87, 90, 93, 94, 96, 98, 101, 104, 106, 108, 109, 112, 115, 117, 120, 122, 123, 126, 129, 131, 133, 134
Offset: 0

Views

Author

Kevin Ryde, Jun 20 2023

Keywords

Comments

This sequence is strictly increasing since if a(n) is attained by the sum of digits of k, then the final digit of k is 3 and (k - (k mod 3))*4/3 + 3 is the same digits with a new second-least significant 1, 2 or 3 inserted, and so a(n+1) >= a(n) + 1.
Terms can be derived from A357425 by a(n) = s for the largest s where A357425(s) has n digits in base 4/3.

Examples

			For n=9, the numbers with 9 digits in base 4/3 are 60 to 79 and among them the maximum sum of digits is A244041(75) = 19 (those digits being 321023323), and so a(9) = 19.
		

Crossrefs

Cf. A024631 (base 4/3), A244041 (sum of digits).
Cf. A357425 (smallest with sum s), A087192.

Formula

a(n) = Max_{4*A087192(n-1) <= i < 4*A087192(n)} A244041(i), for n>=2.

A364779 Largest integer with sum of digits n in fractional base 4/3.

Original entry on oeis.org

0, 1, 2, 4, 5, 8, 16, 17, 32, 44, 80, 256, 257, 344, 460, 464, 620, 1472, 1964, 2620, 2624, 3500, 6224, 8300, 11068, 11072, 26240, 34988, 46652, 262144, 262145, 349528, 349529, 466040, 621392, 828524, 1104700, 1532816, 3633344, 6459280, 6459281, 11483168, 19616912
Offset: 0

Views

Author

Kevin Ryde, Aug 13 2023

Keywords

Comments

A largest integer exists since only a finite number of trailing 0 digits are possible, since each is a factor 4/3.
Each term k >= 3 has final digit d = k mod 4 which is always d < r where r = k mod 3 (and hence d = 0 or 1), since otherwise (k - r)*4/3 + r would split d into two final digits {d-r, r} for a larger number with the same sum of digits.
This sequence is strictly increasing since final digit d = 0 or 1 (and also a(2) = 2) can be incremented so that a(n)+1 is a candidate value for a(n+1).

Crossrefs

Cf. A024631 (base 4/3), A244041 (sum of digits).
Cf. A357425 (smallest of sum), A364780 (count by sum).

Programs

  • C
    /* See links */

A364780 Number of numbers with sum of digits n in fractional base 4/3.

Original entry on oeis.org

1, 1, 1, 2, 1, 2, 4, 3, 5, 6, 7, 14, 13, 15, 19, 19, 30, 39, 45, 56, 65, 75, 95, 124, 140, 174, 216, 268, 338, 417, 501, 627, 780, 974, 1203, 1454, 1825, 2266, 2769, 3427, 4268, 5188, 6433, 7930, 9671, 12000, 14738, 18265, 22642, 27961, 34528, 42523, 52325, 64425
Offset: 0

Views

Author

Kevin Ryde, Aug 13 2023

Keywords

Comments

Only a finite number of numbers have sum of digits n (the largest is A364779(n)).

Crossrefs

Cf. A024631 (base 4/3), A244041 (sum of digits).
Cf. A357425 (smallest), A364779 (largest).
Cf. A245356 (count by length).

Programs

  • C
    /* See links */
Showing 1-3 of 3 results.