freeCodeCamp/curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-322-binomial-coeffi...

1.0 KiB

id challengeType title videoUrl localeTitle
5900f4af1000cf542c50ffc1 5 Problem 322: Binomial coefficients divisible by 10 Problema 322: coeficientes binomiais divisíveis por 10

Description

Seja T (m, n) o número dos coeficientes binomiais iCn que são divisíveis por 10 para n ≤ i <m (i, m e n são inteiros positivos). Você é dado que T (109, 107-10) = 989697000.

Encontre T (1018, 1012-10).

Instructions

Tests

tests:
  - text: <code>euler322()</code> deve retornar 999998760323314000.
    testString: 'assert.strictEqual(euler322(), 999998760323314000, "<code>euler322()</code> should return 999998760323314000.");'

Challenge Seed

function euler322() {
  // Good luck!
  return true;
}

euler322();

Solution

// solution required