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!)
A074458 Number of segments lit to display the number n on a 7-segment display (as in pocket calculators): variant where '6', '7' and '9' use 6, 4 resp. 5 segments. 18

%I #27 Mar 09 2024 11:06:43

%S 6,2,5,5,4,5,6,4,7,5,8,4,7,7,6,7,8,6,9,7,11,7,10,10,9,10,11,9,12,10,

%T 11,7,10,10,9,10,11,9,12,10,10,6,9,9,8,9,10,8,11,9,11,7,10,10,9,10,11,

%U 9,12,10,12,8,11,11,10,11,12,10,13,11,10,6,9,9,8,9,10,8,11

%N Number of segments lit to display the number n on a 7-segment display (as in pocket calculators): variant where '6', '7' and '9' use 6, 4 resp. 5 segments.

%C Sequences A234691 and A234692 use one bit for each lit segment. See crossrefs for other variants. - _M. F. Hasler_, Jun 17 2020

%H <a href="/index/Ca#calculatordisplay">Index entries for sequences related to calculator display</a>

%F From _M. F. Hasler_, Jun 17 2020: (Start)

%F a(n) = a(n mod 10) + a(floor(n/10)) for n > 9.

%F a(n) = A006942(n) - A102679(n) + A102681(n). (End)

%e LED display:

%e _ _ _ _ _ _ _ _

%e | | | _| _| |_| |_ |_ | | |_| |_|

%e |_| | |_ _| | _| |_| | |_| |

%e .

%e so we have a(0) = 6, a(1) = 2, a(2) = 5 ...

%o (PARI) apply( {A074458(n)=digits(6255456475)[n%10+1]+if(n>9,self()(n\10))}, [0..99]) \\ _M. F. Hasler_, Jun 17 2020

%Y Cf. A074459.

%Y For other versions of this sequence, see A006942 (7 with one segment less), A063720 (6 and 7 with one segment less), A010371 (9 with one segment more), A277116 (7 with one segment less, 9 with one segment more).

%Y Cf. A234691, A234692, A000120.

%K nonn,base

%O 0,1

%A Y. Kelly Itakura (yitkr(AT)mta.ca), Aug 22 2002

%E Example edited by _Jon E. Schoenfield_, Jul 30 2017

%E Edited and extended to n > 9 by _M. F. Hasler_, Jun 17 2020

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 19 07:38 EDT 2024. Contains 371782 sequences. (Running on oeis4.)