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

 


A097654
Numbers n such that n=|d_1!!-d_2!!+...+(-1)^(k-1)*d_k!!| where d_1 d_2 ... d_k is the decimal expansion of n.
2
OFFSET
1,2
EXAMPLE
380 is in the sequence because 380=|3!!-8!!+0!!|.
MATHEMATICA
Do[h=IntegerDigits[n]; l=Length[h]; If[n==Abs[Sum[(-1)^(k-1) *h[[k]]!!, {k, l}]], Print[n]], {n, 4*9!!}]
CROSSREFS
KEYWORD
base,fini,full,nonn
AUTHOR
Farideh Firoozbakht, Sep 10 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 20 17:28 EDT 2024. Contains 376075 sequences. (Running on oeis4.)