login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A282693 Numbers k such that k = (sum of digits of k)*((sum of digits of k) + 1). 0
0, 12, 42, 90, 156 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
0 = 0*(0+1).
12 = (1+2)*(1+2+1).
42 = (4+2)*(4+2+1).
90 = (9+0)*(9+0+1).
156 = (1+5+6)*(1+5+6+1).
MATHEMATICA
fQ[n_] := Block[{a = Plus @@ IntegerDigits@ n}, a*(a +1) == n]; Select[ Range[0, 1000], fQ] (* Robert G. Wilson v, Feb 24 2017 *)
PROG
(VBA)
Sub calcul()
Sheets("Result").Select
Range("A1").Select
For i = 1 To 10000000
Sum = 0
For k = 1 To Len(i)
Sum = Sum + Mid(i, k, 1)
Next
res = Sum * (Sum + 1)
If res = i Then
ActiveCell.Value = i
ActiveCell.Offset(1, 0).Select
End If
Next
End Sub
CROSSREFS
Sequence in context: A085798 A335150 A270700 * A045945 A210206 A005901
KEYWORD
bref,base,fini,full,nonn
AUTHOR
Shmelev Aleksei, Feb 24 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)