Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-474-last-digits-of-divisors.english.md
Oliver Eyton-Williams bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

65 lines
1.0 KiB
Markdown

---
id: 5900f5471000cf542c510059
challengeType: 5
title: 'Problem 474: Last digits of divisors'
forumTopicId: 302151
---
## Description
<section id='description'>
For a positive integer n and digits d, we define F(n, d) as the number of the divisors of n whose last digits equal d.
For example, F(84, 4) = 3. Among the divisors of 84 (1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84), three of them (4, 14, 84) have the last digit 4.
We can also verify that F(12!, 12) = 11 and F(50!, 123) = 17888.
Find F(106!, 65432) modulo (1016 + 61).
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler474()</code> should return 9690646731515010.
testString: assert.strictEqual(euler474(), 9690646731515010);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler474() {
// Good luck!
return true;
}
euler474();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>