Talk:Palindromic gapful numbers: Difference between revisions
Content added Content deleted
(Nice Recursive Solution/Definition) |
|||
Line 1: | Line 1: | ||
==Nice Recursive Solution/Definition== |
==Nice Recursive Solution/Definition== |
||
If I let f<sub>1</sub> = 0..1..9 and f<sub>2</sub> = 0..11..99 then f<sub>3</sub> is xyx where x is 0..1..9 and y is |
If I let f<sub>1</sub> = 0..1..9 and f<sub>2</sub> = 0..11..99 then f<sub>3</sub> is xyx where x is 0..1..9 and y is f<sub>1</sub>. In general f<sub>n</sub> is (x<sup>n-1</sup>+x)+10*f<sub>n-2</sub>. For all palindromic numbers x=0 is invalid for outermost pair. Not a problem for this task as you will wish to choose x to be the ending for each set. F# can implement this and execute the entire task in less than 35 thousandths of a sec so sufficiently optimal. |
||
--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 15:07, 3 December 2020 (UTC) |
--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 15:07, 3 December 2020 (UTC) |
||
==Please clarify== |
==Please clarify== |
||
I don't understand the second and third part of the requirements. |
I don't understand the second and third part of the requirements. |