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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A097642 Numbers k such that k = (d_1! + d_2! + ... + d_k!) - (d_1 + d_2 + ... + d_k) where d_1 d_2 ... d_k is the decimal expansion of k. 2
3, 115, 6576, 80855 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..4.

EXAMPLE

80855 is in the sequence because 80855 = (8! + 0! + 8! + 5! + 5!) - (8 + 0 + 8 + 5 + 5).

MATHEMATICA

okQ[n_]:=Module[{idn=IntegerDigits[n]}, n==Total[idn!]-Total[idn]]; Select[Range[81000], okQ] (* Harvey P. Dale, Aug 26 2011 *)

CROSSREFS

Cf. A097643.

Sequence in context: A229929 A267897 A132304 * A009095 A326995 A155209

Adjacent sequences:  A097639 A097640 A097641 * A097643 A097644 A097645

KEYWORD

base,fini,full,nice,nonn

AUTHOR

Farideh Firoozbakht, Aug 22 2004

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 October 15 21:38 EDT 2021. Contains 348034 sequences. (Running on oeis4.)