cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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.

Original entry on oeis.org

1, 2, 3, 380
Offset: 1

Views

Author

Farideh Firoozbakht, Sep 10 2004

Keywords

Examples

			380 is in the sequence because 380=|3!!-8!!+0!!|.
		

Crossrefs

Programs

  • Mathematica
    Do[h=IntegerDigits[n];l=Length[h];If[n==Abs[Sum[(-1)^(k-1) *h[[k]]!!, {k, l}]], Print[n]], {n, 4*9!!}]