Cody

# Problem 1084. Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)

Solution 172812

Submitted on 5 Dec 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
%% assert(digits_squared_chain(649) == 1)

``` ```

2   Pass
%% assert(digits_squared_chain(79) == 1)

``` ```

3   Pass
%% assert(digits_squared_chain(608) == 1)

``` ```

4   Pass
%% assert(digits_squared_chain(487) == 1)

``` ```

5   Pass
%% assert(digits_squared_chain(739) == 1)

``` ```

6   Pass
%% assert(digits_squared_chain(565) == 1)

``` ```

7   Pass
%% assert(digits_squared_chain(68) == 1)

``` ```

8   Pass
%% assert(digits_squared_chain(383) == 1)

``` ```

9   Pass
%% assert(digits_squared_chain(379) == 1)

``` ```

10   Pass
%% assert(digits_squared_chain(203) == 1)

``` ```

11   Pass
%% assert(digits_squared_chain(632) == 1)

``` ```

12   Pass
%% assert(digits_squared_chain(391) == 1)

``` ```

13   Pass
%% assert(digits_squared_chain(863) == 1)

``` ```

14   Pass
%% assert(digits_squared_chain(13) == 1)

``` ```

15   Pass
%% assert(digits_squared_chain(100) == 1)

``` ```

16   Pass
%% assert(digits_squared_chain(236) == 1)

``` ```

17   Pass
%% assert(digits_squared_chain(293) == 1)

``` ```

18   Pass
%% assert(digits_squared_chain(230) == 1)

``` ```

19   Pass
%% assert(digits_squared_chain(31) == 1)

``` ```

20   Pass
%% assert(digits_squared_chain(806) == 1)

``` ```

21   Pass
%% assert(digits_squared_chain(623) == 1)

``` ```

22   Pass
%% assert(digits_squared_chain(7) == 1)

``` ```

23   Pass
%% assert(digits_squared_chain(13) == 1)

``` ```

24   Pass
%% assert(digits_squared_chain(836) == 1)

``` ```

25   Fail
%% assert(digits_squared_chain(954) == 89)

```Error: Assertion failed. ```

26   Fail
%% assert(digits_squared_chain(567) == 89)

```Error: Assertion failed. ```

27   Fail
%% assert(digits_squared_chain(388) == 89)

```Error: Assertion failed. ```

28   Fail
%% assert(digits_squared_chain(789) == 89)

```Error: Assertion failed. ```

29   Fail
%% assert(digits_squared_chain(246) == 89)

```Error: Assertion failed. ```

30   Fail
%% assert(digits_squared_chain(787) == 89)

```Error: Assertion failed. ```

31   Fail
%% assert(digits_squared_chain(311) == 89)

```Error: Assertion failed. ```

32   Fail
%% assert(digits_squared_chain(856) == 89)

```Error: Assertion failed. ```

33   Fail
%% assert(digits_squared_chain(143) == 89)

```Error: Assertion failed. ```

34   Fail
%% assert(digits_squared_chain(873) == 89)

```Error: Assertion failed. ```

35   Fail
%% assert(digits_squared_chain(215) == 89)

```Error: Assertion failed. ```

36   Fail
%% assert(digits_squared_chain(995) == 89)

```Error: Assertion failed. ```

37   Fail
%% assert(digits_squared_chain(455) == 89)

```Error: Assertion failed. ```

38   Fail
%% assert(digits_squared_chain(948) == 89)

```Error: Assertion failed. ```

39   Fail
%% assert(digits_squared_chain(875) == 89)

```Error: Assertion failed. ```

40   Fail
%% assert(digits_squared_chain(788) == 89)

```Error: Assertion failed. ```

41   Fail
%% assert(digits_squared_chain(722) == 89)

```Error: Assertion failed. ```

42   Fail
%% assert(digits_squared_chain(250) == 89)

```Error: Assertion failed. ```

43   Fail
%% assert(digits_squared_chain(227) == 89)

```Error: Assertion failed. ```

44   Fail
%% assert(digits_squared_chain(640) == 89)

```Error: Assertion failed. ```

45   Fail
%% assert(digits_squared_chain(835) == 89)

```Error: Assertion failed. ```

46   Fail
%% assert(digits_squared_chain(965) == 89)

```Error: Assertion failed. ```

47   Fail
%% assert(digits_squared_chain(726) == 89)

```Error: Assertion failed. ```

48   Fail
%% assert(digits_squared_chain(689) == 89)

```Error: Assertion failed. ```