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!)
A028374 Numbers that have only curved digits {0, 3, 6, 8, 9} or digits that are both curved and linear {2, 5}. 11

%I #59 Apr 09 2023 07:54:01

%S 0,2,3,5,6,8,9,20,22,23,25,26,28,29,30,32,33,35,36,38,39,50,52,53,55,

%T 56,58,59,60,62,63,65,66,68,69,80,82,83,85,86,88,89,90,92,93,95,96,98,

%U 99,200,202,203,205,206,208,209,220,222,223,225,226,228,229,230,232,233

%N Numbers that have only curved digits {0, 3, 6, 8, 9} or digits that are both curved and linear {2, 5}.

%C From _Bernard Schott_, Mar 26 2023: (Start)

%C Previous name was: "Curved numbers: numbers that have only curved digits (0, 2, 3, 5, 6, 8, 9)"; but in fact, the curved numbers form the sequence A072960.

%C This sequence allows all digits except for 1, 4 and 7. (End)

%H K. D. Bajpai, <a href="/A028374/b028374.txt">Table of n, a(n) for n = 1..10000</a>

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

%e From _K. D. Bajpai_, Sep 07 2014: (Start)

%e 206 is in the sequence because it has only curved digits 2, 0 and 6.

%e 208 is in the sequence because it has only curved digits 2, 0 and 8.

%e 2035689 is the smallest number having all the curved digits.

%e (End)

%p N:= 3: S:= {0, 2, 3, 5, 6, 8, 9}: K:= S:

%p for j from 2 to N do

%p K:= map(t -> seq(10*t+s, s=S), K);

%p od:

%p print( K); # _K. D. Bajpai_, Sep 07 2014

%t f[n_] := Block[{id = IntegerDigits[n], curve = {0, 2, 3, 5, 6, 8, 9}}, If[ Union[ Join[id, curve]] == curve, True, False]]; Select[ Range[0, 240], f[ # ] & ]

%t Select[Range[0, 249], Union[DigitCount[#] * {1, 0, 0, 1, 0, 0, 1, 0, 0, 0}] == {0} &] (* _Alonso del Arte_, May 23 2014 *)

%t Select[Range[0,500],Intersection[IntegerDigits[#],{1,4,7}]=={}&] (* _K. D. Bajpai_, Sep 07 2014 *)

%o (Python)

%o for n in range(10**3):

%o s = str(n)

%o if not (s.count('1') + s.count('4') + s.count('7')):

%o print(n,end=', ') # _Derek Orr_, Sep 19 2014

%o (Magma) [n: n in [0..300] | Set(Intseq(n)) subset [0,2,3,5, 6,8,9] ]; // _Vincenzo Librandi_, Sep 19 2014

%Y Cf. A028373 (straight digits: 1, 4, 7), A072960 (curved digits: 0, 3, 6, 8, 9), A072961 (both straight and curved digits: 2, 5).

%Y Combinations: A082741 (digits: 1, 2, 4, 5, 7), A361780 (digits: 0, 1, 3, 4, 6, 7, 8, 9).

%Y Cf. A034470 (subsequence of primes).

%K base,easy,nonn

%O 1,2

%A Greg Heil (gheil(AT)scn.org), Dec 11 1999

%E Corrected and extended by _Rick L. Shepherd_, May 21 2003

%E Offset corrected by _Arkadiusz Wesolowski_, Aug 15 2011

%E Definition clarified by _Bernard Schott_, Mar 25 2023

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 April 25 05:56 EDT 2024. Contains 371964 sequences. (Running on oeis4.)