[go: up one dir, main page]

login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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