A343811 Triangular numbers k such that every permutation of the digits of k is a triangular number.
0, 1, 3, 6, 10, 55, 66, 666
Offset: 1
Examples
10 = 4*5/2, 01 = 1*2/2.
Programs
-
Mathematica
triQ[n_] := IntegerQ @ Sqrt[8*n + 1]; Select[Range[0, 1000], AllTrue[Permutations[ IntegerDigits[#] ], triQ[FromDigits[#1]] &] &] (* Amiram Eldar, Apr 30 2021 *) pdtQ[n_]:=AllTrue[FromDigits/@Permutations[IntegerDigits[n]],OddQ[ Sqrt[ 8#+1]]&]; Select[Accumulate[Range[0,5000]],pdtQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 04 2021 *)
Comments