Criminal mathematics