56 lines
1.4 KiB
Markdown
56 lines
1.4 KiB
Markdown
|
---
|
||
|
id: 5900f5471000cf542c510059
|
||
|
challengeType: 5
|
||
|
title: 'Problem 474: Last digits of divisors'
|
||
|
videoUrl: ''
|
||
|
localeTitle: 'المشكلة 474: آخر أرقام من المقسومات'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id="description"> من أجل عدد صحيح موجب n والأرقام d ، نحدد F (n، d) كعدد مقسمات n التي تكون أرقامها الأخيرة مساوية d. على سبيل المثال ، F (84 ، 4) = 3. بين القواسم من 84 (1 ، 2 ، 3 ، 4 ، 6 ، 7 ، 12 ، 14 ، 21 ، 28 ، 42 ، 84) ، ثلاثة منهم (4 ، 14) ، 84) يكون الرقم الأخير 4. <p style=";text-align:right;direction:rtl"> يمكننا أيضًا التحقق من F (12! ، 12) = 11 و F (50! ، 123) = 17888. </p><p style=";text-align:right;direction:rtl"> البحث عن F (106! ، 65432) modulo (1016 + 61). </p></section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id="instructions">
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: يجب أن <code>euler474()</code> 9690646731515010.
|
||
|
testString: 'assert.strictEqual(euler474(), 9690646731515010, "<code>euler474()</code> should return 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>
|