A049355 Digitally balanced numbers in base 4: equal numbers of 0's, 1's, ... 3's.
75, 78, 99, 108, 114, 120, 135, 141, 147, 156, 177, 180, 198, 201, 210, 216, 225, 228, 16815, 16827, 16830, 16875, 16878, 16890, 17007, 17019, 17022, 17055, 17079, 17085, 17115, 17118, 17127, 17133, 17142, 17145, 17259, 17262, 17274, 17307, 17310, 17319, 17325
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1001
- Vassilis Papanicolaou, Problem 11729, The American Mathematical Monthly, Vol. 120, No. 8 (2013), p. 754; Summing the Reciprocals of Normal Numbers Base b, Solution to Problem 11729 by Nicole Grivaux, ibid., Vol. 122, No. 8 (2015), p. 806.
- Roberto Tauraso, Problem 11729.
Programs
-
Mathematica
Select[Range[20000],Length[Union[DigitCount[#,4]]]==1&] (* Harvey P. Dale, Mar 19 2013 *) FromDigits[#,4]&/@DeleteCases[Flatten[Permutations/@Table[PadRight[{},4n,{1,0,2,3}],{n,2}],1],?(#[[1]]==0&)]//Sort (* _Harvey P. Dale, May 30 2016 *)
-
PARI
is(n) = {my(c = matreduce(digits(n,4))[,2]); #c == 4 && #Set(c) == 1;} \\ Amiram Eldar, Feb 15 2024
Extensions
Offset corrected by Amiram Eldar, Feb 15 2024
Comments