login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A032840 Numbers whose set of base-16 digits is {3,4}. 1

%I #18 Sep 08 2022 08:44:51

%S 3,4,51,52,67,68,819,820,835,836,1075,1076,1091,1092,13107,13108,

%T 13123,13124,13363,13364,13379,13380,17203,17204,17219,17220,17459,

%U 17460,17475,17476,209715,209716,209731,209732,209971,209972

%N Numbers whose set of base-16 digits is {3,4}.

%H Vincenzo Librandi, <a href="/A032840/b032840.txt">Table of n, a(n) for n = 1..1000</a>

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

%t Flatten[Table[FromDigits[#,16]&/@Tuples[{3,4},n],{n,5}]] (* _Vincenzo Librandi_, May 31 2012 *)

%o (Magma) [n: n in [1..265000] | Set(IntegerToSequence(n, 16)) subset {3, 4}]; // _Vincenzo Librandi_, May 31 2012

%o (Python)

%o def a(n): return int(bin(n+1)[3:].replace('1', '4').replace('0', '3'), 16)

%o print([a(n) for n in range(1, 37)]) # _Michael S. Branicky_, Aug 22 2021

%K nonn,base,easy

%O 1,1

%A _Clark Kimberling_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 5 10:42 EDT 2024. Contains 372275 sequences. (Running on oeis4.)