login
Numbers that contain a 6.
29

%I #18 Nov 02 2022 13:48:48

%S 6,16,26,36,46,56,60,61,62,63,64,65,66,67,68,69,76,86,96,106,116,126,

%T 136,146,156,160,161,162,163,164,165,166,167,168,169,176,186,196,206,

%U 216,226,236,246,256,260,261,262,263,264,265,266,267,268

%N Numbers that contain a 6.

%C These might be called "sexy" (or "sextic") numbers. - _Cino Hilliard_, Nov 28 2008

%H Vincenzo Librandi, <a href="/A011536/b011536.txt">Table of n, a(n) for n = 1..3439</a>

%H <a href="/index/Ar#10-automatic">Index entries for 10-automatic sequences</a>.

%F a(n) ~ n. - _Charles R Greathouse IV_, Nov 02 2022

%t Select[Range[300], DigitCount[#, 10, 6]>0 &] (* _Vincenzo Librandi_, Feb 15 2017 *)

%o (PARI) is(n)=!!setsearch(Set(digits(n)), 6) \\ _Charles R Greathouse IV_, Feb 12 2017

%o (Magma) [n: n in [0..500] | 6 in Intseq(n) ]; // _Vincenzo Librandi_, Feb 15 2017

%o (GAP) Filtered([1..270],n->6 in ListOfDigits(n)); # _Muniru A Asiru_, Feb 24 2019

%K nonn,base,easy

%O 1,1

%A _N. J. A. Sloane_.