# Search:

Type: Posts; User: leeminho

## Search: Search took 0.81 seconds.

by leeminho
Replies
11
Views
247

### Re: HAILSTONE SEQUENCING

I tried that but it didn't work......

--- Update ---

*it didn't help

by leeminho
Replies
11
Views
247

### Re: HAILSTONE SEQUENCING

Well my problem is that when i run my program, it keeps printing out 2 as the answer but the answer should be 8111. So i probably messed up with while(Sn != 472151 )

by leeminho
Replies
11
Views
247

### Re: HAILSTONE SEQUENCING

public static void question3()
{
/*
1. S(n) stands for the sum of all the numbers in the Hailstone sequence beginning with n. For example, S(6) = 55 and
S(7) = 288. For what integer...

by leeminho
Replies
11
Views
247

### Re: HAILSTONE SEQUENCING

public static void question3()
{

1. S(n) stands for the sum of all the numbers in the Hailstone sequence beginning with n. For example, S(6) = 55 and
S(7) = 288. For what integer n...

by leeminho
Replies
11
Views
247

### Re: HAILSTONE SEQUENCING

If n is even, the next integer is n/2.
If n is odd, the next integer is 3n+1.

--- Update ---

this is my method so far...
public static void question3()
{
/*
1. S(n) stands for...