login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A062329 a(n) = (sum of digits of n) - (product of digits of n). 8
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, -1, -2, -3, -4, -5, -6, -7, 3, 1, -1, -3, -5, -7, -9, -11, -13, -15, 4, 1, -2, -5, -8, -11, -14, -17, -20, -23, 5, 1, -3, -7, -11, -15, -19, -23, -27, -31, 6, 1, -4, -9, -14, -19, -24, -29, -34, -39, 7, 1, -5, -11, -17, -23, -29, -35, -41, -47, 8, 1, -6, -13, -20, -27 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,21

LINKS

Harry J. Smith, Table of n, a(n) for n = 0..1000

EXAMPLE

a(23) = 2 + 3 - 2*3 = -1.

a(49) = -(4*9) + (4 + 9) = -36 + 13 = -23.

MATHEMATICA

a[n_] := (t = IntegerDigits[n]; Plus @@ t - Times @@ t); Table[ a[n], {n, 0, 75}] (* Robert G. Wilson v *)

CROSSREFS

Cf. A007953, A007954, A034710, A062996, A062997, A062998, A062999, A070565.

A063543 has a similar graph.

Sequence in context: A080776 A297158 A065358 * A022958 A023444 A248157

Adjacent sequences:  A062326 A062327 A062328 * A062330 A062331 A062332

KEYWORD

sign,base,easy,look

AUTHOR

Amarnath Murthy, Jun 21 2001

EXTENSIONS

Corrected and extended by Larry Reeves (larryr(AT)acm.org), Jun 22 2001

Signed version from Henry Bottomley, Jun 29 2001

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 1 02:46 EST 2021. Contains 349426 sequences. (Running on oeis4.)